程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Solved: pip installs the third module (library) out of sync with PyCharm (PyCharm adds a local python interpreter)

編輯:Python

已解決:pip安裝第三模塊(庫)與PyCharm中不同步的問題(PyCharm添加本地python解釋器)




Article table of contents

  • Error message
  • Reason for the error
  • Workaround




Error message


I have a lot of modules installed in my pip, but I can't see the installed library when PyCharm opens it, nor can I import it:



You can see that it is installed but cannot be imported:




Reason for error


Reason for the error: There is no local Python parser configured in PyCharm, so it cannot be imported



Workaround


1. Open the setting in File and select Project interpreter, as shown below:



2. Select the settings button on the right, where Location selects site-packages in the python installation path, and Base interpreter selects python.exe in the installation path, as shown below:



Note: Select the Python installation path to enter the Lib folder, select: F:\Python3.8\Lib\site-packages



3. The interpreter in the System interpreter must be consistent with the Base interpreter, then click OK and select Apply



4. Wait for the latest version update to complete, click apply and ok



  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved