windows11 python环境问题

File "D:\xxx.conda\envs\xxx_env\lib\site-packages\tornado\httpserver.py", line 29, in <module>
import ssl
import _ssl # if we can't import it, let the error propagate
ImportError: DLL load failed while importing _ssl: 找不到指定的模块。

  1. conda创建的环境位置大约是 HOME.conda\envs
  2. 把环境中的 xxx_env\Library\bin 下面的dll文件 (libcrypto-1_1-x64.dll 和 libssl-1_1-x64.dll) 复制到 xxx_env\DLLs 下

python - 使用 aiohttp 时出现 "RuntimeError: <_overlapped.Overlapped object> still has pending operation at deallocation"

import platform
if platform.system() == 'Windows':
   asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容