出於某種原因,我得到試圖導入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
時,它工作正常。
任何人有任何想法可能會發生什麼?