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: 找不到指定的模块。
- conda创建的环境位置大约是 HOME.conda\envs
- 把环境中的 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())