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
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
2015-02-24 为WebBrowser指定IE内核版本(MSIE 7.0)
2012-02-24 matlab中读取txt数据文件(txt文本文档)
2010-02-24 ASP.NET Export DataTable to Excel
2009-02-24 C语言程序设计 数据类型转换