当前位置:网站首页>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.
边栏推荐
猜你喜欢
[Go through 3] Convolution & Image Noise & Edge & Texture
Dephi reverse tool Dede exports function name MAP and imports it into IDA
数据库实验五 备份与恢复
2022 Hangzhou Electric Multi-School 1st Session 01
【过一下6】机器视觉视频 【过一下2被挤掉了】
RL reinforcement learning summary (1)
结构光三维重建(二)线结构光三维重建
OFDM Lecture 16 5 -Discrete Convolution, ISI and ICI on DMT/OFDM Systems
Dephi逆向工具Dede导出函数名MAP导入到IDA中
【过一下3】卷积&图像噪音&边缘&纹理
随机推荐
[WeChat applet] WXML template syntax - conditional rendering
MySQL Foundation (1) - Basic Cognition and Operation
RL reinforcement learning summary (1)
2022牛客多校第四场C.Easy Counting Problem(EGF+NTT)
Flutter real machine running and simulator running
DOM及其应用
第三讲 Gradient Tutorial梯度下降与随机梯度下降
Flutter学习4-基本UI组件
【微信小程序】WXML模板语法-条件渲染
Flutter learning 2-dart learning
Pycharm中使用pip安装第三方库安装失败:“Non-zero exit code (2)“的解决方法
入口点注入
jvm 三 之堆与栈
2023年信息与通信工程国际会议(JCICE 2023)
flex布局青蛙游戏通关攻略
Excel Paint
Basic properties of binary tree + oj problem analysis
phone call function
UVA10827
Machine Learning (2) - Machine Learning Fundamentals