2016-01-06 27 views
1

easy_install -U TurboJson與下面的錯誤 -無法使用的easy_install

[email protected]:~$ sudo easy_install -U TurboJSON 
Searching for TurboJSON 
Reading pypi.python.org/simple/TurboJSON link 
Best match: TurboJson 1.3.2 
Downloading TurboJson-1.3.2-py2.7.egg#md5=8708fcb8979c661104c9b444e5428484 
Processing TurboJson-1.3.2-py2.7.egg 
Moving TurboJson-1.3.2-py2.7.egg to /usr/local/lib/python2.7/dist-packages 
Adding TurboJson 1.3.2 to easy-install.pth file 

Installed /usr/local/lib/python2.7/dist-packages/TurboJson-1.3.2-py2.7.egg 
Processing dependencies for TurboJSON 
Searching for simplejson>=1.9.1 
Reading pypi.python.org/simple/simplejson/ link 
Best match: simplejson 3.8.1 
Downloading simplejson-3.8.1.tar.gz#md5=b8441f1053edd9dc335ded8c7f98a974 
Processing simplejson-3.8.1.tar.gz 
Writing /tmp/easy_install-4VcmRi/simplejson-3.8.1/setup.cfg 
Running simplejson-3.8.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-4VcmRi/simplejson-3.8.1/egg-dist-tmp-K89rCq 
zip_safe flag not set; analyzing archive contents... 
simplejson.tests.init: module references file Adding simplejson 3.8.1 to easy-install.pth file 

Installed /usr/local/lib/python2.7/dist-packages/simplejson-3.8.1-py2.7-linux-x86_64.egg 
Searching for PEAK-Rules>=0.5a1.dev-r2600 
Reading https://pypi.python.org/simple/PEAK-Rules/ 
No local packages or download links found for PEAK-Rules>=0.5a1.dev-r2600 

error: Could not find suitable distribution for Requirement.parse('PEAK-Rules>=0.5a1.dev-r2600') 

[email protected]:~$ 

https://pypi.python.org/simple/peak-rules/好像是壞了不能安裝TurboJson 1.3.2。它沒有列出任何非常奇怪的軟件包。此前,它主要提供PEAK-Rules> = 0.5a1.dev-r2713。

+0

'easy_install http:// www.turbogears.org/2.1/downloads/current/PEAK-Rules-0.5a​​1.dev-r2686.tar.gz'獲取PEAK-Rules,然後重新運行'easy_install TurboJSON' 。 – Monkpit

+0

我認爲pypi peak-rules軟件包已被破壞,正如你懷疑的那樣。 – Monkpit

回答

0

從我所知道的情況來看,PEAK規則的PyPi頁面沒有任何可用於安裝的軟件包,正如您在問題中所懷疑的那樣。

解決方案是自己安裝PEAK-Rules依賴項,然後安裝TurboJSON。

首先,運行: easy_install http://www.turbogears.org/2.1/downloads/current/PEAK-Rules-0.5a1.dev-r2686.tar.gz

這應該安裝PEAK-Rules 0.5a1.dev-r2686成功,這將滿足PEAK-Rules>=0.5a1.dev-r2600的TurboJSON要求。

現在,如果您運行的是(sudo) easy_install -U TurboJSON,則安裝應該按預期工作。

+0

謝謝!我現在使用相同的方法作爲解決方法。 TurboGears 2.0.4也提供了PEAK-Rules 0.5a1.dev-r2686。所以,我跑了: easy_install http://www.turbogears.org/2.0/downloads/current/PEAK-Rules-0.5a​​1.dev-r2686.tar.gz 您是否對PyPi頁面是否有PEAK-規則暫時被打破或者總是這樣?因爲在安裝TurboJson 1.3.2之前,我感覺它已被意外打破,PEAK-Rules> = 0.5a1.dev-r2713被安裝爲依賴項。 –