Ubuntu 14.04 .5 LTS 安裝Python-pip(二)

安裝pip最新版本需要先卸載原來的版本。

#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

進入解壓縮完成目錄

 #cd pip-10.0.1
 #sudo python3.6 setup.py install

安裝完畢,測試一下看看是不是新版本。

#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)

下面要測試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

看了是沒有安裝成功,需要找一下原因。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容