当前位置:网站首页>Pycharm中使用pip安装第三方库安装失败:“Non-zero exit code (2)“的解决方法
Pycharm中使用pip安装第三方库安装失败:“Non-zero exit code (2)“的解决方法
2022-08-05 05:13:00 【吃饱了就很强】
【关于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 ‘D:\python3.7\venv\Scripts\python.exe’.
好久没用pycharm,最近做图像处理相关的东西,安装第三方库发现任何库都安装不了,一直提示这玩意。

本来怀疑python解释器出现问题,但还是决定试试直接用cmd安装,于是发现可以安装成功。

顺便记录一下安装的指令,老是忘记。
pip install 包名 -i https://pypi.tuna.tsinghua.edu.cn/simple
每次都用cmd 安装比较麻烦,还是想找个最终解决办法。于是根据错误提示,猜测可能是pip版本和解释器不兼容?
我的电脑里安装的是python3.7
在电脑里D、E盘分别有一个python3.7 ,平时主要用D盘的解释器。E盘pip版本为19.0.3,而D盘pip版本为22.1.2

尝试卸载 22.1.2版本,安装19.0.3版本
python -m pip uninstall pip
easy_install pip==19.0.3
然后转回pycharm,用scipy尝试安装,测试问题是否解决,成功解决问题,舒服了!
在网上各种搜索找解决办法,煎熬了两个小时,终于解决了,开心。
边栏推荐
- The underlying mechanism of the class
- "PHP8 Beginner's Guide" A brief introduction to PHP
- Algorithms - ones and zeros (Kotlin)
- 2023年信息与通信工程国际会议(JCICE 2023)
- RL强化学习总结(一)
- Error creating bean with name 'configDataContextRefresher' defined in class path resource
- [cesium] 3D Tileset model is loaded and associated with the model tree
- 【微信小程序】WXML模板语法-条件渲染
- "Recursion" recursion concept and typical examples
- entry point injection
猜你喜欢
随机推荐
【过一下15】学习 lstm的一周
[cesium] element highlighting
【解码工具】Bitcoin的一些在线工具
【过一下9】卷积
Dashboard Display | DataEase Look at China: Data Presents China's Capital Market
uboot开启调试打印信息
Flex layout frog game clearance strategy
第三讲 Gradient Tutorial梯度下降与随机梯度下降
Flutter真机运行及模拟器运行
数据库 单表查询
[Decoding tools] Some online tools for Bitcoin
Wise Force Deleter强制删除工具
Flutter TapGestureRecognizer 如何工作
span标签和p标签的区别
After controlling the export file in MySQL, it becomes \N. Is there any solution?
LAB Semaphore Implementation Details
Reverse theory knowledge 4
【过一下4】09-10_经典网络解析
1.3 mysql批量插入数据
Geek卸载工具









![[cesium] 3D Tileset model is loaded and associated with the model tree](/img/03/50b7394f33118c9ca1fbf31b737b1a.png)