当前位置:网站首页>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尝试安装,测试问题是否解决,成功解决问题,舒服了!
在网上各种搜索找解决办法,煎熬了两个小时,终于解决了,开心。
边栏推荐
- 1068找到更多的硬币
- RL reinforcement learning summary (1)
- redis事务
- Detailed Explanation of Redis Sentinel Mode Configuration File
- [WeChat applet] WXML template syntax - conditional rendering
- Analysis of Mvi Architecture
- 【cesium】Load and locate 3D Tileset
- coppercam入门手册[6]
- 第5讲 使用pytorch实现线性回归
- Reverse theory knowledge 4
猜你喜欢
随机推荐
Qt produces 18 frames of Cupid to express his love, is it your Cupid!!!
uboot开启调试打印信息
第四讲 back propagation 反向传播
【cesium】Load and locate 3D Tileset
社区分享|腾讯海外游戏基于JumpServer构建游戏安全运营能力
Flutter learning 5-integration-packaging-publish
Redis - 13、开发规范
Flutter学习三-Flutter基本结构和原理
The difference between span tag and p
Returned object not currently part of this pool
第四讲 反向传播随笔
Flutter learning 2-dart learning
结构光三维重建(一)条纹结构光三维重建
LAB Semaphore Implementation Details
【无标题】
UVA10827
【cesium】元素高亮显示
redis 缓存清除策略
uboot enable debug printing information
u-boot debugging and positioning means








