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創(chuàng)建的環(huán)境位置大約是 HOME.conda\envs
- 把環(huán)境中的 xxx_env\Library\bin 下面的dll文件 (libcrypto-1_1-x64.dll 和 libssl-1_1-x64.dll) 復(fù)制到 xxx_env\DLLs 下
python - 使用 aiohttp 時出現(xiàn) "RuntimeError: <_overlapped.Overlapped object> still has pending operation at deallocation"
import platform
if platform.system() == 'Windows':
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())