百度云服务器部署公众号后台服务环境遇到的坑
2020-03-23 本文已影响0人
鱿鱼炸酱面
最近想要把自己写的一个简单的微信公众号放到新买的百度云服务器(Debian)上,遇到了一些坑。
输入命令查看自带的python3库列表:
python3 -m pip list
提示无pip,接着安装pip:
apt install python3-pip
提示安装pip失败,apt版本过低, 接着更新apt-get:
apt-get update
重新使用pip install安装三方库又出错:
TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'
强制升级pip
python3 -m pip install --upgrade --force pip
仍然报相同错误:

按如下命令更换pip镜像源后,再次强制升级pip成功,安装三方库也ok:

执行脚本部署服务也正常:
