当前位置:网站首页>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.
边栏推荐
- 多线程查询结果,添加List集合
- 2022 The 4th C.Easy Counting Problem (EGF+NTT)
- Database experiment five backup and recovery
- 【过一下16】回顾一下七月
- Mysql5.7 二进制 部署
- 2023年信息与通信工程国际会议(JCICE 2023)
- Excel画图
- [Go through 3] Convolution & Image Noise & Edge & Texture
- 有用番茄来监督自己的同道中人吗?加一下我的自习室,一起加油
- 2022 Hangzhou Electric Multi-School 1st Session 01
猜你喜欢

vscode+pytorch使用经验记录(个人记录+不定时更新)

Structured light 3D reconstruction (1) Striped structured light 3D reconstruction

Excel画图

SQL(二) —— join窗口函数视图

Flutter learning 5-integration-packaging-publish

RL reinforcement learning summary (1)

How can Flutter parent and child components receive click events

【过一下9】卷积

Geek卸载工具

Flutter learning 2-dart learning
随机推荐
有用番茄来监督自己的同道中人吗?加一下我的自习室,一起加油
C#关于set()和get()方法的理解及使用
淘宝账号如何快速提升到更高等级
Flutter real machine running and simulator running
学习总结week3_4类与对象
Flex layout frog game clearance strategy
Multi-threaded query results, add List collection
redis复制机制
Cryptography Series: PEM and PKCS7, PKCS8, PKCS12
2023年信息与通信工程国际会议(JCICE 2023)
2023 International Conference on Information and Communication Engineering (JCICE 2023)
【过一下7】全连接神经网络视频第一节的笔记
【读书】长期更新
OFDM Lecture 16 5 -Discrete Convolution, ISI and ICI on DMT/OFDM Systems
LAB 信号量实现细节
Machine Learning (2) - Machine Learning Fundamentals
第二讲 Linear Model 线性模型
[Decoding tools] Some online tools for Bitcoin
MySQL基础(一)---基础认知及操作
【过一下 17】pytorch 改写 keras