无法使用easy_install安装TurboJson 1.3.2

时间:2016-01-06 13:39:53

标签: python turbogears

easy_install -U TurboJson失败并出现以下错误 -

user@ubuntu-dev:~$ 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')

user@ubuntu-dev:~$

https://pypi.python.org/simple/peak-rules/似乎被打破了。它没有列出任何非常奇怪的包。早些时候,它主要提供PEAK规则> = 0.5a1.dev-r2713。

1 个答案:

答案 0 :(得分: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,安装应该按预期工作。