1,import setuptools ImportError: No module named setuptools
2,distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pbr')
解决: wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install pbr
3 又会这样
在response时,无法返回,报错Can’t connect to HTTPS URL because the SSL module is not available
解决办法:
sudo apt-get install libssl-dev
sudo apt-get install openssl
进入到安装的python的目录下
./configure --enable-shared --enable-loadable-sqlite-extensions
sudo make
sudo make install
4. You are using pip version 8.1.1, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
更新下pip
解决:pip文件在usr/bin目录下,cd进去,进行以下修改
把下面的三行
from pip import main
if __name__ == '__main__':
sys.exit(main())
换成下面的三行
from pip import __main__
if __name__ == '__main__':