当前位置:网站首页>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.
边栏推荐
- 结构光三维重建(一)条纹结构光三维重建
- Community Sharing|Tencent Overseas Games builds game security operation capabilities based on JumpServer
- 2023 International Conference on Information and Communication Engineering (JCICE 2023)
- 【过一下4】09-10_经典网络解析
- phone call function
- The role of DataContext in WPF
- The software design experiment four bridge model experiment
- 密码学系列之:PEM和PKCS7,PKCS8,PKCS12
- [Go through 3] Convolution & Image Noise & Edge & Texture
- Qt produces 18 frames of Cupid to express his love, is it your Cupid!!!
猜你喜欢
逆向理论知识4
How can Flutter parent and child components receive click events
u-boot调试定位手段
Basic properties of binary tree + oj problem analysis
Excel画图
Error creating bean with name 'configDataContextRefresher' defined in class path resource
【过一下9】卷积
Dephi reverse tool Dede exports function name MAP and imports it into IDA
DOM及其应用
[Go through 3] Convolution & Image Noise & Edge & Texture
随机推荐
Flutter learning 2-dart learning
密码学系列之:PEM和PKCS7,PKCS8,PKCS12
第四讲 back propagation 反向传播
【过一下9】卷积
MySQL中控制导出文件后变为了\N有什么解决方案吗?
Database experiment five backup and recovery
redis事务
entry point injection
redis 缓存清除策略
1068找到更多的硬币
u-boot调试定位手段
2022 The 4th C.Easy Counting Problem (EGF+NTT)
Flutter learning - the beginning
判断语句_switch与case
Redis - 13、开发规范
Requests the library deployment and common function
Requests库部署与常用函数讲解
Using QR codes to solve fixed asset management challenges
『递归』递归概念与典型实例
Returned object not currently part of this pool