Python 官方文档:入门教程 => 点击学习
最近刚看python,用PyCharm遇到些问题 安装第三方包matplotlib、numpy失败,如下: 打开PyCharm,点击File->Settings->Project->Python Interpreter->右侧界面的“+”号
安装第三方包matplotlib、numpy失败,如下:
环境:win10+pycharm+Python 3.8
管理员权限+升级pip版本+国内源安装包
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\xgwang\AppData\Local\Programs\Python\python38\python.exe'.
1. 使用管理员模式打开pycharm
2. 首先升级pip版本
python -m pip install --upgrade pip(或:python -m pip install -U --force-reinstall pip)
3. 后来错误演变为如下,
ERROR: Could not find a version that satisfies the requirement pip (from versions: none)
ERROR: No matching distribution found for pip
4.换成国内的pip源 可以解决问题
pip install numpy -i Http://pypi.doubaNIO.com/simple/ --trusted-host pypi.doubanio.compip install matplotlib -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
成功!
成功之后的提示:
参考:
https://blog.csdn.net/JineD/article/details/124774570
https://blog.csdn.net/u012592062/article/details/51966649
https://zhuanlan.zhihu.com/p/97893886
感谢小爽帮我一块分析解决问题!!
来源地址:https://blog.csdn.net/qq_22163371/article/details/128136152
--结束END--
本文标题: python pycharm安装第三方包matplotlib、numpy失败,解决办法
本文链接: https://www.lsjlt.com/news/428195.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-03-01
2024-03-01
2024-03-01
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0