当前位置:网站首页>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尝试安装,测试问题是否解决,成功解决问题,舒服了!
在网上各种搜索找解决办法,煎熬了两个小时,终于解决了,开心。
边栏推荐
- Excel Paint
- Flutter real machine running and simulator running
- Returned object not currently part of this pool
- 【微信小程序】WXML模板语法-条件渲染
- 入口点注入
- 「PHP8入门指南」PHP简明介绍
- MySQL Foundation (1) - Basic Cognition and Operation
- 【cesium】Load and locate 3D Tileset
- Dashboard Display | DataEase Look at China: Data Presents China's Capital Market
- Understanding and use of C# on set() and get() methods
猜你喜欢
随机推荐
Flutter real machine running and simulator running
【解码工具】Bitcoin的一些在线工具
Flutter 父子组件如何都能收到点击事件
MySQL Foundation (1) - Basic Cognition and Operation
仪表板展示 | DataEase看中国:数据呈现中国资本市场
Flutter learning - the beginning
【过一下3】卷积&图像噪音&边缘&纹理
[Software Exam System Architect] Software Architecture Design ③ Domain-Specific Software Architecture (DSSA)
2022 The 4th C.Easy Counting Problem (EGF+NTT)
位运算符与逻辑运算符的区别
【过一下16】回顾一下七月
Reverse theory knowledge 4
Algorithms - ones and zeros (Kotlin)
[cesium] 3D Tileset model is loaded and associated with the model tree
LAB 信号量实现细节
【过一下8】全连接神经网络 视频 笔记
Excel画图
Transformation 和 Action 常用算子
第三讲 Gradient Tutorial梯度下降与随机梯度下降
UVA10827






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


