安裝pip最新版本需要先卸載原來(lái)的版本。
#pip -V
#sudo apt-get autoremove python-pip
下載官方pip
#wget https://files.pythonhosted.org/packages/ae/e8/2340d46ecadb1692a1e455f13f75e596d4eab3d11a57446f08259dee8f02/pip-10.0.1.tar.gz
解壓縮
#tar -xzvf pip-10.0.1.tar.gz
進(jìn)入解壓縮完成目錄
#cd pip-10.0.1
#sudo python3.6 setup.py install
安裝完畢星岗,測(cè)試一下看看是不是新版本填大。
#pip -V
pip 10.0.1 from /usr/local/lib/python3.6/site-packages/pip-10.0.1-py3.6.egg/pip (python 3.6)
下面要測(cè)試pip是否安裝成功,就是能否加載包也就是框架俏橘。
#pip install web.py
Could not fetch URL https://pypi.org/simple/web-py/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/web-py/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)) - skipping
Could not find a version that satisfies the requirement web.py (from versions: )
No matching distribution found for web.py
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)) - skipping
看了是沒(méi)有安裝成功允华,需要找一下原因。