尝试在受控环境中设置python flask服务器,无法访问互联网
# python setup.py install
Traceback (most recent call last):
File "setup.py", line 9, in <module>
use_setuptools()
File "/tmp/app_dependencies/SQLObject-3.1.0/ez_setup.py", line 150, in use_setuptools
version = _resolve_version(version)
File "/tmp/app_dependencies/SQLObject-3.1.0/ez_setup.py", line 358, in _resolve_version
resp = urlopen(meta_url)
File "/usr/lib64/python2.6/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib64/python2.6/urllib2.py", line 391, in open
response = self._open(req, data)
File "/usr/lib64/python2.6/urllib2.py", line 409, in _open
'_open', req)
File "/usr/lib64/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/lib64/python2.6/urllib2.py", line 1198, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/usr/lib64/python2.6/urllib2.py", line 1165, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [Errno 97] Address family not supported by protocol>
答案 0 :(得分:1)
能够从车轮文件安装
pip install SQLObject-version.whl
答案 1 :(得分:0)
如果您从没有Internet连接的源安装,则必须在安装SQLObject之前安装依赖项 - FormEncode,PyDispatcher和后端驱动程序。