类似于this问题,但我得到了不同的错误。在
我尝试通过pip安装:
pip install django-chronograph
我使用的是python2.7和virtualenv
^{pr2}$错误:
pip install django-chronograph
Collecting django-chronograph
Using cached django-chronograph-0.3.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/87/h3ltndc5279cknk_vn9nzjjc0000gn/T/pip-build-_JDRxl/django-chronograph/setup.py", line 32, in <module>
setup_distribute()
File "/private/var/folders/87/h3ltndc5279cknk_vn9nzjjc0000gn/T/pip-build-_JDRxl/django-chronograph/setup.py", line 18, in setup_distribute
distribute_setup = __import__('distribute_setup')
File "distribute_setup.py", line 1
<html>
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/87/h3ltndc5279cknk_vn9nzjjc0000gn/T/pip-build-_JDRxl/django-chronograph/
问题在于
django-chronograph
提供的安装脚本。在在
setup.py
的第16行中,它尝试下载一个脚本: https://bitbucket.org/wnielson/django-chronograph/src/f561106f6aaab62f2817e08e51c799320fd916d9/setup.py?at=default&fileviewer=file-view-default#setup.py-16在此代码块中:
但是,当您访问位于
http://nightly.ziade.org/distribute_setup.py
的URL时,它会给出404错误,因此在错误中返回html
。在看起来你可以在这里分发:https://pypi.python.org/pypi/distribute/0.7.3
或者在安装django计时手表之前尝试执行以下操作:
^{pr2}$祝你好运!在
django计时器未维护。它的fork做得更好,并且支持Django 2.0和Django 2.1:https://github.com/chrisspen/django-chroniker
相关问题 更多 >
编程相关推荐