2017-09-15 61 views
-2

安裝枕頭我想在Python 2.7安裝的枕頭卻是露出下面的錯誤無法在python2.7

Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f0ffab30f90>, 'Connection to 192.168.5.254 timed out. (connect timeout=15)')': /simple/pil/ 
    Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f0ffab30f10>, 'Connection to 192.168.5.254 timed out. (connect timeout=15)')': /simple/pil/ 
    Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f0ffab30e10>, 'Connection to 192.168.5.254 timed out. (connect timeout=15)')': /simple/pil/ 
    Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f0ffab30090>, 'Connection to 192.168.5.254 timed out. (connect timeout=15)')': /simple/pil/ 
    Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f0ffaab7050>, 'Connection to 192.168.5.254 timed out. (connect timeout=15)')': /simple/pil/ 
    Could not find a version that satisfies the requirement PIL (from versions:) 
No matching distribution found for PIL 
+2

你使用了什麼命令? – C8H10N4O2

+2

你是怎麼安裝它的?點子?康達?運行粗略的可執行文件? – Kevin

+0

@Kevin我用pip安裝枕頭 – pratibhamenon

回答

0

下載併爲Python 2

https://pypi.python.org/packages/2.7/P/Pillow/Pillow-2.5.3.win-amd64-py2.7.exe#md5=33c3a581ff1538b4f79b4651084090c8 

下載cImage.py安裝枕頭來自Github

Navigate to https://github.com/bnmnetp/cImage 
Click cImage.py, and click the button labeled Raw to see the contents of the file. 
Click File > Save Page As (Chrome & Firefox) or File > Save As (Safari) to save the file on your computer. 
Copy 「cImage.py」 from where you saved it to C:\Python27\Lib\site-packages and C:\Python34\Lib\site-packages\