Python asyncio '_overlapped' is not imported

别等时光非礼了梦想. 提交于 2019-12-04 04:20:27

问题


Could not import asyncio library in virtualenv.

  • Python 3.6.4 x32
  • Win 10 x64
Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>import asyncio
Traceback (most recent call last):
  File "C:\Python36\Lib\asyncio\__init__.py", line 16, in <module>
    from . import _overlapped
ImportError: cannot import name '_overlapped'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python36\Lib\asyncio\__init__.py", line 18, in <module>
    import _overlapped  # Will also be exported.
OSError: [WinError 0] The operation completed successfully

There is no module _overlapped in asyncio folder "C:\Python36\Lib\asyncio\". Also I know that asyncio is a part of Python from version 3.4.

What is wrong and what should i do? Could it be due to x64 Win and not x64 Python?

来源:https://stackoverflow.com/questions/48077745/python-asyncio-overlapped-is-not-imported

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!