久久久精品一区ed2k-女人被男人叉到高潮的视频-中文字幕乱码一区久久麻豆樱花-俄罗斯熟妇真实视频

python2.6中pip安裝失敗怎么辦-創(chuàng)新互聯(lián)

創(chuàng)新互聯(lián)www.cdcxhl.cn八線動態(tài)BGP香港云服務器提供商,新人活動買多久送多久,劃算不套路!

10多年專注建站、設計、互聯(lián)網(wǎng)產(chǎn)品按需求定制開發(fā)服務,業(yè)務涵蓋品牌網(wǎng)站制作、商城網(wǎng)站定制開發(fā)、微信小程序定制開發(fā)、軟件系統(tǒng)開發(fā)、重慶APP開發(fā)等。憑借多年豐富的經(jīng)驗,我們會仔細了解每個客戶的需求而做出多方面的分析、設計、整合,為客戶設計出具風格及創(chuàng)意性的商業(yè)解決方案,成都創(chuàng)新互聯(lián)公司更提供一系列網(wǎng)站制作和網(wǎng)站推廣的服務,以推動各中小企業(yè)全面信息數(shù)字化,并利用創(chuàng)新技術幫助各行業(yè)提升企業(yè)形象和運營效率。

這篇文章將為大家詳細講解有關python2.6中pip安裝失敗怎么辦,小編覺得挺實用的,因此分享給大家做個參考,希望大家閱讀完這篇文章后可以有所收獲。

安裝pip失敗:

注意:使用python2.6.6安裝,因為我的環(huán)境中python指向的是2.6.6,所以直接使用下面命令進得安裝。

python get-pip.py

報錯如下

[root@javen-zhao pip2.6]# python get-pip.py 

DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

Collecting pip<10

  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/pip/

  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/pip/

  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/pip/

  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/pip/

  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/pip/

  Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.python.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

  Could not find a version that satisfies the requirement pip<10 (from versions: )

No matching distribution found for pip<10

解決方法:

1、使用如下命令安裝python 2.6.6后可以正常安裝pip。

./configure --prefix=/usr/local --with-ssl --enable-optimizations

其中--prefix=/usr/local是指定python安裝的路徑,安裝后python2.6可執(zhí)行腳本會在/usr/local/bin目錄下

2、做上面操作時檢查一下系統(tǒng)中是否有安裝openssl-devel

檢查openssl安裝情況

[root@javen-zhao pip]# rpm -aq|grep openssl
openssl-devel-1.0.1e-57.el6.x86_64
openssl-1.0.1e-57.el6.x86_64

3、 如果沒有openssl-devel使用yum 安裝

[root@javen-zhao pip]# yum install openssl-devel

4、重新安裝pip,安裝成功后查看2.6.6環(huán)境下的pip版本信息

[root@javen-zhao pip2.6]# pip2.6 -V
pip 9.0.3 from /usr/local/lib/python2.6/site-packages (python 2.6)
[root@javen-zhao pip2.6]# whereis pip
pip: /usr/bin/pip /usr/bin/pip2.7 /usr/local/bin/pip2.6 /usr/local/bin/pip

安裝成功。

關于python2.6中pip安裝失敗怎么辦就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,可以學到更多知識。如果覺得文章不錯,可以把它分享出去讓更多的人看到。

文章標題:python2.6中pip安裝失敗怎么辦-創(chuàng)新互聯(lián)
分享地址:http://sd-ha.com/article20/dghcjo.html

成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供手機網(wǎng)站建設、外貿(mào)建站、品牌網(wǎng)站設計、關鍵詞優(yōu)化動態(tài)網(wǎng)站、App設計

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都做網(wǎng)站