本文介绍了gevent库:“导入错误:没有名为greenlet的模块"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我下载了一个需要gevent python库的脚本,每次运行该脚本时都会说:

hello guys I have downloaded a script that require gevent python library and every time I run the script it says :

 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,但我只是感到困惑,有人可以给我解决方案并解释问题.

I have successfully downloaded and installed gevent and i'm just confused can someone give me the solution and explain the problem.

推荐答案

尝试通过安装greenlet pip 像这样:pip install greenlet.

这篇关于gevent库:“导入错误:没有名为greenlet的模块"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-29 19:26