pycharm 安裝模塊 use the correct version of 'pip' installed for your Python interpreter


python安裝包的過程是比較復雜和麻煩的,可能會出現各種錯誤。比起R語言安裝包要復雜很多。

 

Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'C:\Users\Administrator\PycharmProjects\untitled\venv\Scripts\python.exe'.

 

 

 

在下載庫的界面點擊 Manage Repositories

 

 通過切換下載源就可以解決問題啦

 

 

 

清華:

https://pypi.tuna.tsinghua.edu.cn/simple
阿里:

http://mirrors.aliyun.com/pypi/simple/
豆瓣:

http://pypi.douban.com/simple/
華中理工大學:

http://pypi.hustunique.com/
山東理工大學:

http://pypi.sdutlinux.org/
中國科學技術大學:

http://pypi.mirrors.ustc.edu.cn/

默認值:

https://pypi.python.org/simple


————————————————

 

安裝 sklearn,python3.7, pip 19.0.3, 使用了 https://pypi.doubanio.com/simple/

安裝 numpy,scipy,matplotlib,python3.7, pip 19.0.3, 使用了 https://pypi.mirrors.ustc.edu.cn/simple/

tensorflow,嘗試了 https://pypi.doubanio.com/simple/,http://mirrors.aliyun.com/pypi/simple/https://pypi.mirrors.ustc.edu.cn/simple/https://pypi.tuna.tsinghua.edu.cn/simple/https://www.lfd.uci.edu/~gohlke/pythonlibs/,都失敗

 

 ————————————————

常用pip的鏡像路徑有:

1.阿里雲 (經過測試,pip提示版本不正確)

pip install 包名 -i http://mirrors.aliyun.com/pypi/simple/

2.中國科技大學 (經過測試,能用)
pip install 包名 -i https://pypi.mirrors.ustc.edu.cn/simple/

3.豆瓣
pip install 包名 -i http://pypi.douban.com/simple/

4.清華大學  (經過測試,不能用)
pip install 包名 -i https://pypi.tuna.tsinghua.edu.cn/simple/

5.中國科學技術大學
pip install 包名 -i http://pypi.mirrors.ustc.edu.cn/simple/

6.加利福利亞大學
pip install 包名 -i https://www.lfd.uci.edu/~gohlke/pythonlibs/
————————————————
 
原文鏈接:https://blog.csdn.net/qq_44142640/article/details/104214185

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM