当前位置:网站首页>pip install xxx 出现 AttributeError: ‘tuple’ object has no attribute ‘read’ 错误
pip install xxx 出现 AttributeError: ‘tuple’ object has no attribute ‘read’ 错误
2022-08-08 13:25:00 【马儿不会跑】
一. pip install xxx报错:
在服务器上用 pip install 安装一个 package 时,没有安装成功,出现了“AttributeError: ‘tuple’ object has no attribute ‘read’”问题;
二. 问题查找:
后来发现 pip list、 pip uninstall都不行;
三. 问题原因:
最后终于找到了原因,因为安装了subprocess.run,这个包的某些接口跟 Python 3.5+ (我是python3.7)严重冲突;
四. 解决方案:
需要rm -rf subprocess.run;删除这个package就行了;就这玩意折腾了我好几个小时,气的我赶紧来发个文章,避免你们被坑。
如果对你有帮助,记得点赞~
边栏推荐
- (7) FlinkSQL kafka data written to the mysql way 2
- 【C语言】自定义类型详解:结构体、枚举、联合
- Docker - persistent database (data volume)
- In-depth analysis of the soul of C language -- pointer
- 【Redis】位图以及位图的使用场景(统计在线人数和用户在线状态)
- 【个人总结】2022.8.7周结
- 一文搞懂│XSS攻击、SQL注入、CSRF攻击、DDOS攻击、DNS劫持
- OFD是什么
- 医药行业转型发展,探索数字化供应链升级之道
- 【Redis】redis安装与客户端redis-cli的使用(批量操作)
猜你喜欢
程序环境和预处理
ctfshow 七夕杯(复现)
Qt操作Sqlite类封装,及命令行导入csv文件到Sqlite数据库
KMP Media Group South Africa implemented a DMS (Document Management System) to digitize the process, employees can again focus on their actual tasks, providing efficiency
【软考 系统架构设计师】软件架构设计⑥ 软件产品线
Program Environment and Preprocessing
使用.NET简单实现一个Redis的高性能克隆版(三)
萤石、小米对垒智能摄像头
C语言的三个经典题目:三步翻转法、杨氏矩阵、辗转相除法
[界面开发]DevExpress WinForms流程图控件——XtraDiagrams组件入门指南
随机推荐
MySQL:索引(1)原理与底层结构
你是什么时候对深度学习失去信心的?
Implement a customized pin code input control
直接选择排序
SQL INSERT INTO and INSERT INTO the SELECT statement
UnsatisfiedDependencyException: Error creating bean with name ‘
服务器配置——Linux系统安装Redis
R语言patchwork包将多个ggplot2可视化结果组合起来、使用plot_annotation函数以及tag_level参数为组合图添加自定义编码序列(字符向量列表)
【C语言】深度剖析数据在内存中的存储
C语言小项目 -- 扫雷游戏完整代码(递归展开 + 选择标记)
HackTheBox | Horizontall
Fluorite, millet against smart camera
Implementation of FIR filter based on FPGA (1) - using fir1 function design
logistic回归模型—基于R
The maximum validity period of an SSL certificate is 13 months. Is it necessary to apply for multiple years at a time?
R语言ggplot2可视化:使用ggpubr包的ggtexttable函数可视化表格数据(直接绘制表格图或者在图像中添加表格数据)、使用tab_add_hline函数为表头添加横线并自定义线条宽度
6.【opencv鼠标回调事件】
优刻得“失速”:营收转降,定向增发股东浮亏超三成
【软考 系统架构设计师】软件架构设计⑦ 构件与中间件技术
bzoj 3624 [Apio2008]免费道路