pycharm第三方库安装失败的问题及解决经验分享
作者:迎风而来 时间:2023-07-11 01:50:45
一、报错信息:【file】【Default Settint】---Project Interpreter 点击搜索suds安装模块报错
解决:依据上图提示找到C:\Program Files\JetBrains\PyCharm 2017.2.3\helpers\packaging_tool.py 文件的192行和109行
将do_install函数和do_uninstall函数修改为如下格式
def do_install(pkgs):
try:
try:
from pip._internal import main
except Exception:
from pip import main
except ImportError:
error_no_pip()
return main(['install'] + pkgs)
def do_uninstall(pkgs):
try:
try:
from pip._internal import main
except Exception:
from pip import main
except ImportError:
error_no_pip()
return main(['uninstall', '-y'] + pkgs)
一般到此问题就可以解决,如果还没有解决,请继续往下阅读
二、紧接着又出现如下错误:NameError: name 'pip' is not defined
解决:
上述问题的出现是第一次修改的不彻底导致的:更改do_install
函数和do_uninstall
函数时返回内容要去掉pip
三、最后又出现:安装suds提示ModuleNotFoundError: No module named 'client'
解决:
没有模块叫client 的。需要先安装 client ,然后再安装 suds 。
pip install client
pip install suds
来源:https://www.cnblogs.com/sui776265233/p/9764524.html
标签:pycharm,第三方库,安装,失败
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
VSCODE配置Markdown及Markdown基础语法详解
2021-10-02 10:21:20
![](https://img.aspxhome.com/file/2023/0/121490_0s.png)
详解numpy1.19.4与python3.9版本冲突解决
2021-10-26 22:51:26
![](https://img.aspxhome.com/file/2023/6/123546_0s.png)
[译文]The seven rules of Unobtrusive JavaScript
2008-09-29 12:10:00
浅谈Python爬取网页的编码处理
2021-02-03 19:55:56
![](https://img.aspxhome.com/file/2023/8/90578_0s.jpg)
在Python中使用元类的教程
2021-04-12 05:09:34
ASP使用MYSQL数据库全攻略
2009-11-08 18:27:00
python利用百度云接口实现车牌识别的示例
2021-06-05 12:52:34
![](https://img.aspxhome.com/file/2023/8/90778_0s.jpg)
python+selenium实现简历自动刷新的示例代码
2023-11-27 16:13:01
![](https://img.aspxhome.com/file/2023/9/76049_0s.jpg)
在SAE上部署Python的Django框架的一些问题汇总
2023-12-17 19:08:25
如何利用Anaconda配置简单的Python环境
2023-05-05 22:48:54
![](https://img.aspxhome.com/file/2023/4/121504_0s.jpg)
Python 使用指定的网卡发送HTTP请求的实例
2022-07-05 05:30:00
Python封装数据库连接池详解
2024-01-14 06:26:37
![](https://img.aspxhome.com/file/2023/9/102959_0s.png)
浅谈go语言renderer包代码分析
2024-05-08 10:13:56
Python+xlwings制作天气预报表
2021-03-26 14:08:31
![](https://img.aspxhome.com/file/2023/8/92238_0s.png)
vuejs实现标签选项卡动态更改css样式的方法
2024-04-30 10:22:57
关于MySQL性能调优你必须了解的15个重要变量(小结)
2024-01-25 08:55:42
Python命令行参数定义及需要注意的地方
2022-09-16 02:34:39
![](https://img.aspxhome.com/file/2023/9/115689_0s.png)
anconda的pip下载包出现的问题解决
2022-06-21 22:17:33
![](https://img.aspxhome.com/file/2023/5/131285_0s.jpg)
Vue中使用vee-validate表单验证的方法
2024-06-05 15:29:04
![](https://img.aspxhome.com/file/2023/2/123142_0s.jpg)
Python命名空间与作用域深入全面详解
2022-03-07 08:36:10
![](https://img.aspxhome.com/file/2023/1/115491_0s.jpg)