我的python version is 3.6.1
和我的点version is 9.0.1
。我的操作系统是centos 7.3
。当我运行命令
pip install diango
,diango无法安装。错误消息是:
Collecting diango
Using cached diango-1.1.tar.gz
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/diango.egg-info
writing pip-egg-info/diango.egg-info/PKG-INFO
writing dependency_links to pip-egg-info/diango.egg-info/dependency_links.txt
writing top-level names to pip-egg-info/diango.egg-info/top_level.txt
writing manifest file 'pip-egg-info/diango.egg-info/SOURCES.txt'
reading manifest file 'pip-egg-info/diango.egg-info/SOURCES.txt'
writing manifest file 'pip-egg-info/diango.egg-info/SOURCES.txt'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-e3zbahes/diango/setup.py", line 21, in <module>
urlopen('http://94.140.120.197/counter/diango.html')
File "/usr/local/lib/python3.6/urllib/request.py", line 223, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/lib/python3.6/urllib/request.py", line 532, in open
response = meth(req, response)
File "/usr/local/lib/python3.6/urllib/request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/local/lib/python3.6/urllib/request.py", line 570, in error
return self._call_chain(*args)
File "/usr/local/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/usr/local/lib/python3.6/urllib/request.py", line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-e3zbahes/diango/
我认为urlopen('http://94.140.120.197/counter/diango.html')
可能是主要问题所以我将网址复制到chrome中。不幸的是,这个地址是"The requested URL /counter/diango.html was not found on this server."
。我不知道这是一个错误或其他什么。谢谢你的任何建议!
答案 0 :(得分:0)
可能是您没有安装setuptools?
也许试试这个:
pip install --upgrade setuptools
然后尝试再次使用pip安装django。
答案 1 :(得分:0)
最后,我通过命令
成功安装了diangopip install diango == 1.11.2
Diango官方小组声明他们已经修复了这个错误。