【问题标题】:Unable to install TurboJson 1.3.2 using easy_install无法使用 easy_install 安装 TurboJson 1.3.2
【发布时间】:2016-04-10 15:03:38
【问题描述】:

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-Rules>=0.5a1.dev-r2713。

【问题讨论】:

  • easy_install http://www.turbogears.org/2.1/downloads/current/PEAK-Rules-0.5a1.dev-r2686.tar.gz 获取 PEAK-Rules,然后重新运行 easy_install TurboJSON
  • 我认为 pypi peak-rules 包已损坏,正如您所怀疑的那样。

标签: python turbogears


【解决方案1】:

据我所知,PEAK-Rules 的 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,安装应该会按预期进行。

【讨论】:

  • 谢谢!我现在使用相同的方法作为解决方法。 TurboGears 2.0.4 还提供 PEAK-Rules 0.5a1.dev-r2686。所以,我跑了:easy_install turbogears.org/2.0/downloads/current/… 你知道 PEAK-Rules 的 PyPi 页面是暂时坏了还是总是这样?我觉得它被意外损坏了,因为之前在安装 TurboJson 1.3.2 时,PEAK-Rules>=0.5a1.dev-r2713 被安装为依赖项。
猜你喜欢
  • 2023-03-11
  • 2013-09-22
  • 2011-11-29
  • 2012-05-26
  • 1970-01-01
  • 1970-01-01
  • 2014-12-04
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多