出于某种原因,我得到试图导入gevent
我的搬运工容器内,当这个错误:导入错误:无法导入名称_NONE
# python
Python 2.7.10 (default, Oct 14 2015, 16:09:02)
[GCC 5.2.1 20151010] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gevent
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/gevent/__init__.py", line 51, in <module>
from gevent.hub import get_hub, iwait, wait
File "/usr/local/lib/python2.7/dist-packages/gevent/hub.py", line 31, in <module>
from gevent._util import _NONE
ImportError: cannot import name _NONE
>>>
这是奇怪的,因为_util.py
存在,它在dist-packages/gevent
目录。当我在另一个系统上执行pip install
时,它工作正常。
任何人有任何想法可能会发生什么?