wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
(from https://pip.pypa.io/en/stable/installing/)
运行python get-pip.py时,如果遇错:
AttributeError: 'module' object has no attribute 'SSL_ST_INIT' ,这是pyopenssl库的问题造成的。
则解决办法:
rm -rf /usr/lib/python2.7/dist-packages/pyOpenSSL-version-number.egg-info/
wget https://files.pythonhosted.org/packages/9b/7c/ee600b2a9304d260d96044ab5c5e57aa489755b92bbeb4c0803f9504f480/pyOpenSSL-18.0.0.tar.gz
tar zxvf pyOpenSSL-18.0.0.tar.gz
cd pyOpenSSL-18.0.0
python setup.py install
(https://pypi.org/project/pyOpenSSL/#files)
sudo python get-pip.py
(from https://pip.pypa.io/en/stable/installing/)
运行python get-pip.py时,如果遇错:
AttributeError: 'module' object has no attribute 'SSL_ST_INIT' ,这是pyopenssl库的问题造成的。
则解决办法:
rm -rf /usr/lib/python2.7/dist-packages/pyOpenSSL-version-number.egg-info/
wget https://files.pythonhosted.org/packages/9b/7c/ee600b2a9304d260d96044ab5c5e57aa489755b92bbeb4c0803f9504f480/pyOpenSSL-18.0.0.tar.gz
tar zxvf pyOpenSSL-18.0.0.tar.gz
cd pyOpenSSL-18.0.0
python setup.py install
(https://pypi.org/project/pyOpenSSL/#files)
No comments:
Post a Comment