当前位置:网站首页>Using pip to install third-party libraries in Pycharm fails to install: "Non-zero exit code (2)" solution
Using pip to install third-party libraries in Pycharm fails to install: "Non-zero exit code (2)" solution
2022-08-05 05:23:00 【When you are full, you will be strong】
[About pip install third-party library tips] 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'.
I haven't used pycharm for a long time. I recently did something related to image processing. I installed a third-party library and found that none of the libraries could be installed, and it kept prompting this thing.

I suspected that there was a problem with the python interpreter, but I decided to try installing it directly with cmd, so I found that the installation could be successful.

By the way, record the installation instructions, I always forget.
pip install package-i https://pypi.tuna.tsinghua.edu.cn/simple
It is troublesome to install with cmd every time, but I still want to find a final solution.So according to the error prompt, guess it may be that the pip version and the interpreter are incompatible?
My computer is installed with python3.7
There is a python3.7 in the D and E disks in the computer, and I usually use the D disk interpreter.The pip version of the E disk is 19.0.3, and the pip version of the D disk is 22.1.2

Try to uninstall version 22.1.2,Install version 19.0.3
python -m pip uninstall pip
easy_install pip==19.0.3
Then switch back to pycharm and useTry to install scipy, test whether the problem is solved, successfully solve the problem, feel comfortable!
I searched the Internet to find a solution. After suffering for two hours, I finally solved it. I am happy.
边栏推荐
猜你喜欢

Qt produces 18 frames of Cupid to express his love, is it your Cupid!!!

【过一下 17】pytorch 改写 keras

Pycharm中使用pip安装第三方库安装失败:“Non-zero exit code (2)“的解决方法

第5讲 使用pytorch实现线性回归

Algorithms - ones and zeros (Kotlin)

Qt制作18帧丘比特表白意中人、是你的丘比特嘛!!!

SQL(一) —— 增删改查

ESP32 485 Illuminance
![[Study Notes Dish Dog Learning C] Classic Written Exam Questions of Dynamic Memory Management](/img/0b/f7d9205c616f7785519cf94853d37d.png)
[Study Notes Dish Dog Learning C] Classic Written Exam Questions of Dynamic Memory Management

【过一下8】全连接神经网络 视频 笔记
随机推荐
Algorithms - ones and zeros (Kotlin)
Difference between for..in and for..of
Pycharm中使用pip安装第三方库安装失败:“Non-zero exit code (2)“的解决方法
Detailed Explanation of Redis Sentinel Mode Configuration File
uva1325
Flutter real machine running and simulator running
Reverse theory knowledge 4
【Untitled】
逆向理论知识4
human weakness
Develop a highly fault-tolerant distributed system
"Recursion" recursion concept and typical examples
【过一下7】全连接神经网络视频第一节的笔记
UVA10827
coppercam primer [6]
Basic properties of binary tree + oj problem analysis
How to quickly upgrade your Taobao account to a higher level
OFDM Lecture 16 5 -Discrete Convolution, ISI and ICI on DMT/OFDM Systems
小白一枚各位大牛轻虐虐
LAB 信号量实现细节