I installed a module with pip, which cannot be called in pycharm, and found that the sys.path in the shell and pycharm is different. Nani? Could it be different?
Obviously there are three important paths missing from pycharm's sys.path on the left. Among them, the modules installed through pip are in the folder ...\python\lib\site-packages. The reason is found, what should I do?
First, I thought of manually adding the path to sys.path through sys.path.append(). Although this is feasible, you can't add it every time you call the module! How can it be done once and for all? ? ?
Ask the seniors in the group: Select in pycharm: Settings --> Project:PY --> Project Interpreter --> Pinion --> Load more (Show All...) --> Plus sign
After clicking the plus sign, follow the steps below:
Then keep confirming, the following effect will appear, and then click OK again to complete
Finish!
-------------------------------------------------- ---------------No--chat--of--point--cut--line------------------- --------------------------------------------------------
Please write down the detailed steps here to avoid forgetting it, and it can also be used for reference by friends who have the same problem.
(To be added...)