大家好,我下载了一个需要gevent python库的脚本,每次运行该脚本时,它都会说:
File "shodan.py", line 7, in <module>
from gevent import monkey
File "C:\Python27\lib\site-packages\gevent\__init__.py", line 48, in <module>
from gevent.greenlet import Greenlet, joinall, killall
File "C:\Python27\lib\site-packages\gevent\greenlet.py", line 6, in <module>
from gevent.hub import greenlet, getcurrent, get_hub, GreenletExit, Waiter
File "C:\Python27\lib\site-packages\gevent\hub.py", line 30, in <module>
greenlet = __import__('greenlet').greenlet
ImportError: No module named greenlet
我已经成功下载并安装了gevent,但我很困惑,有人可以给我解决方案并解释问题。
最佳答案
尝试像这样通过pip安装greenlet
:pip install greenlet
。
关于python - gevent库: "Import Error: no module named greenlet",我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/12322247/