微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

 

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐