gevent加载失败:venv内部的DLL加载失败

时间:2018-12-26 02:54:47

标签: python gevent

我目前在python环境中使用venv和gevent,但似乎无法正常工作。这是我的堆栈跟踪:

Traceback (most recent call last):
  File "C:\Users\Brian\AppData\Local\Programs\Python\Python35\lib\runpy.py", line 184, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Users\Brian\AppData\Local\Programs\Python\Python35\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "D:\Projects\sfe-giveaways\venv\lib\site-packages\disco\cli.py", line 12, in <module>
    from gevent import monkey
  File "D:\Projects\sfe-giveaways\venv\lib\site-packages\gevent\__init__.py", line 48, in <module>
    import socket  # pylint:disable=unused-import,useless-suppression
  File "C:\Users\Brian\AppData\Local\Programs\Python\Python35\lib\socket.py", line 49, in <module>
    import _socket
ImportError: DLL load failed: %1 is not a valid Win32 application.

我认为我需要32位版本的gevent,以便与venv兼容,但是我不知道如何安装32位版本。预先感谢。

0 个答案:

没有答案