Python报错TypeError: unsupported operand type(s) for -=: ‘Retry’ and ‘int’
新搭建的Ubuntu16.04系统,执行pip install oss2 paho-mqtt requests,报错:Python报错TypeError: unsupported operand type(s) for -=: ‘Retry’ and ‘int’
解决办法:
- 创建pip.conf文件夹
mkdir ~/.pip
- 添加pip国内源
cat >> ~/.pip/1.conf << EOF
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
EOF
以上的报错问题件解决了,如有其它的报错问题,请看如下博客:
https://blog.csdn.net/weixin_40668374/article/details/114542640
https://blog.csdn.net/weixin_40668374/article/details/114543104