py2neo 离线安装失败
py2neo offline install failing
我正在尝试在离线机器上安装 py2neo。我无法使用 pip,因为我没有连接到互联网。我正在尝试在 redhat 上使用 python2.7.9 安装 py2neo-2.0.3。当我 运行 python setup.py install
我得到 ImportError: cannot import name HTTPSConnection
。
Traceback (most recent call last):
File "setup.py", line 29, in <module>
from py2neo import __author__, __email__, __license__, __package__, __version__
File "usr/lib/py2neo-2.0.3/py2neo/__init__.py" line 27, in <module>
from py2neo.core import *
File "usr/lib/py2neo-2.0.3/py2neo/core.py", line 28, in <module>
from py2neo.env import NEO4J_AUTH_TOKEN, NEO4J_URI
File "usr/lib/py2neo-2.0.3/py2neo/env.py", line 21, in <module>
from py2neo.packages.httpstream.packages.urimagic import URI
File "usr/lib/py2neo-2.0.3/py2neo/packages/httpstream/__init__.py", line 32, in <module>
from .http import *
File "usr/lib/py2neo-2.0.3/py2neo/packages/httpstream/http.py", line 31, in <module>
from httplib import (BadStatusLine, CannotSendRequest,
ImportError: cannot import name HTTPSConnection
我试过安装 httpstream,但未能解决导入错误。
HTTPSConnection
应该与标准库一起提供,而不是 py2neo 本身的一部分:
https://docs.python.org/2/library/httplib.html#httplib.HTTPSConnection
我不太清楚 RedHat 是如何打包的 Python 但除了主要语言之外,您可能还需要安装 SSL 支持。我相信这是一个单独的编译选项:
http://www.webtop.com.au/blog/compiling-python-with-ssl-support-fedora-10-2009020237
我正在尝试在离线机器上安装 py2neo。我无法使用 pip,因为我没有连接到互联网。我正在尝试在 redhat 上使用 python2.7.9 安装 py2neo-2.0.3。当我 运行 python setup.py install
我得到 ImportError: cannot import name HTTPSConnection
。
Traceback (most recent call last):
File "setup.py", line 29, in <module>
from py2neo import __author__, __email__, __license__, __package__, __version__
File "usr/lib/py2neo-2.0.3/py2neo/__init__.py" line 27, in <module>
from py2neo.core import *
File "usr/lib/py2neo-2.0.3/py2neo/core.py", line 28, in <module>
from py2neo.env import NEO4J_AUTH_TOKEN, NEO4J_URI
File "usr/lib/py2neo-2.0.3/py2neo/env.py", line 21, in <module>
from py2neo.packages.httpstream.packages.urimagic import URI
File "usr/lib/py2neo-2.0.3/py2neo/packages/httpstream/__init__.py", line 32, in <module>
from .http import *
File "usr/lib/py2neo-2.0.3/py2neo/packages/httpstream/http.py", line 31, in <module>
from httplib import (BadStatusLine, CannotSendRequest,
ImportError: cannot import name HTTPSConnection
我试过安装 httpstream,但未能解决导入错误。
HTTPSConnection
应该与标准库一起提供,而不是 py2neo 本身的一部分:
https://docs.python.org/2/library/httplib.html#httplib.HTTPSConnection
我不太清楚 RedHat 是如何打包的 Python 但除了主要语言之外,您可能还需要安装 SSL 支持。我相信这是一个单独的编译选项:
http://www.webtop.com.au/blog/compiling-python-with-ssl-support-fedora-10-2009020237