当我设置时,我得到:
C:\Python27>python Lib\site-packages\rdflib-master\setup.py
Traceback (most recent call last):
File "Lib\site-packages\rdflib-master\setup.py", line 64, in <module>
version = find_version('rdflib/__init__.py')
File "Lib\site-packages\rdflib-master\setup.py", line 59, in find_version
for line in open(filename):
IOError: [Errno 2] No such file or directory: 'rdflib/__init__.py'
该文件在那里,我尝试将包路径添加到 PYTHONPATH;没运气。
因此,我尝试使用 ez_setup.py,但这会阻塞某些 url,导致它出现 404(下面的跟踪)。
我还搜索了一般安装建议:我找到了 pre-K 和 postgrad,但没有任何帮助。
Downloading http://cheeseshop.python.org/packages/2.7/s/setuptools/setuptools-0.6c5-py2.7.egg
Traceback (most recent call last):
File "Lib\site-packages\rdflib-master\ez_setup.py", line 223, in <module>
main(sys.argv[1:])
File "Lib\site-packages\rdflib-master\ez_setup.py", line 155, in main
egg = download_setuptools(version, delay=0)
File "Lib\site-packages\rdflib-master\ez_setup.py", line 137, in download_setuptools
src = urllib2.urlopen(url)
File "C:\Python27\lib\urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "C:\Python27\lib\urllib2.py", line 400, in open
response = meth(req, response)
File "C:\Python27\lib\urllib2.py", line 513, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Python27\lib\urllib2.py", line 432, in error
result = self._call_chain(*args)
File "C:\Python27\lib\urllib2.py", line 372, in _call_chain
result = func(*args)
File "C:\Python27\lib\urllib2.py", line 619, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "C:\Python27\lib\urllib2.py", line 400, in open
response = meth(req, response)
File "C:\Python27\lib\urllib2.py", line 513, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Python27\lib\urllib2.py", line 438, in error
return self._call_chain(*args)
File "C:\Python27\lib\urllib2.py", line 372, in _call_chain
result = func(*args)
File "C:\Python27\lib\urllib2.py", line 521, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found