当前位置:网站首页>Pycharm中使用pip安装第三方库安装失败:“Non-zero exit code (2)“的解决方法
Pycharm中使用pip安装第三方库安装失败:“Non-zero exit code (2)“的解决方法
2022-08-05 05:13:00 【吃饱了就很强】
【关于pip安装第三方库提示】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’.
好久没用pycharm,最近做图像处理相关的东西,安装第三方库发现任何库都安装不了,一直提示这玩意。

本来怀疑python解释器出现问题,但还是决定试试直接用cmd安装,于是发现可以安装成功。

顺便记录一下安装的指令,老是忘记。
pip install 包名 -i https://pypi.tuna.tsinghua.edu.cn/simple
每次都用cmd 安装比较麻烦,还是想找个最终解决办法。于是根据错误提示,猜测可能是pip版本和解释器不兼容?
我的电脑里安装的是python3.7
在电脑里D、E盘分别有一个python3.7 ,平时主要用D盘的解释器。E盘pip版本为19.0.3,而D盘pip版本为22.1.2

尝试卸载 22.1.2版本,安装19.0.3版本
python -m pip uninstall pip
easy_install pip==19.0.3
然后转回pycharm,用scipy尝试安装,测试问题是否解决,成功解决问题,舒服了!
在网上各种搜索找解决办法,煎熬了两个小时,终于解决了,开心。
边栏推荐
- 开发一套高容错分布式系统
- LeetCode:1403. 非递增顺序的最小子序列【贪心】
- 第四讲 反向传播随笔
- 2023 International Conference on Information and Communication Engineering (JCICE 2023)
- 淘宝账号如何快速提升到更高等级
- Flutter learning 5-integration-packaging-publish
- 【过一下 17】pytorch 改写 keras
- 结构光三维重建(一)条纹结构光三维重建
- Structured light 3D reconstruction (1) Striped structured light 3D reconstruction
- Flutter学习-开篇
猜你喜欢

位运算符与逻辑运算符的区别

Flutter learning three-Flutter basic structure and principle

Dephi逆向工具Dede导出函数名MAP导入到IDA中

Multi-threaded query results, add List collection

【Transfer】What is etcd

类的底层机制

span标签和p标签的区别

Difference between for..in and for..of

MySQL Foundation (1) - Basic Cognition and Operation

The difference between span tag and p
随机推荐
Flutter学习5-集成-打包-发布
MySQL中控制导出文件后变为了\N有什么解决方案吗?
server disk array
2022杭电多校第一场01
Using QR codes to solve fixed asset management challenges
分布式和集群
【过一下4】09-10_经典网络解析
Flutter真机运行及模拟器运行
How does the Flutter TapGestureRecognizer work
二叉树基本性质+oj题解析
redis 持久化
[cesium] 3D Tileset model is loaded and associated with the model tree
Flutter learning three-Flutter basic structure and principle
仪表板展示 | DataEase看中国:数据呈现中国资本市场
结构光三维重建(一)条纹结构光三维重建
How can Flutter parent and child components receive click events
【过一下10】sklearn使用记录
一篇博客通关Redis技术栈
1068 Find More Coins
Redis - 13. Development Specifications