当前位置:网站首页>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.
边栏推荐
- 第三讲 Gradient Tutorial梯度下降与随机梯度下降
- 第5讲 使用pytorch实现线性回归
- 2022 Hangzhou Electric Multi-School 1st Session 01
- 【解码工具】Bitcoin的一些在线工具
- Flutter真机运行及模拟器运行
- Algorithms - ones and zeros (Kotlin)
- 【过一下10】sklearn使用记录
- u-boot中的u-boot,dm-pre-reloc
- Dashboard Display | DataEase Look at China: Data Presents China's Capital Market
- Flutter 父子组件如何都能收到点击事件
猜你喜欢

How can Flutter parent and child components receive click events

【过一下10】sklearn使用记录

多线程查询结果,添加List集合

WPF中DataContext作用

OFDM 十六讲 5 -Discrete Convolution, ISI and ICI on DMT/OFDM Systems

SQL(一) —— 增删改查

开发一套高容错分布式系统

MySQL基础(一)---基础认知及操作

"Recursion" recursion concept and typical examples

OFDM Lecture 16 5 -Discrete Convolution, ISI and ICI on DMT/OFDM Systems
随机推荐
[Decoding tools] Some online tools for Bitcoin
Flutter learning 2-dart learning
使用二维码解决固定资产管理的难题
Algorithms - ones and zeros (Kotlin)
CAP+BASE
coppercam primer [6]
学习总结week3_4类与对象
[WeChat applet] WXML template syntax - conditional rendering
【cesium】Load and locate 3D Tileset
The mall background management system based on Web design and implementation
After controlling the export file in MySQL, it becomes \N. Is there any solution?
【Transfer】What is etcd
RL reinforcement learning summary (1)
The underlying mechanism of the class
u-boot调试定位手段
2022 Hangzhou Electric Multi-School 1st Session 01
Distributed systems revisited: there will never be a perfect consistency scheme...
Redis - 13. Development Specifications
重新审视分布式系统:永远不会有完美的一致性方案……
Cryptography Series: PEM and PKCS7, PKCS8, PKCS12