错误1:from cryptography.hazmat.bindings._openssl import ffi, lib
ImportError: DLL load failed: 找不到指定的程序。
解决:
先卸载再安装:
pip uninstall pyopenssl
pip uninstall cryptography
pip install pyopenssl
pip install cryptography
安装pyopenssl的过程中报错:
“cannot find rust compiler”
解决:升级pip,
python -m pip install --upgrade pip
错误2:importError: DLL load failed: 找不到指定的程序。
运行scrapy bench(基准测试,啥都不爬)报错:
File "c:\users\xuzhe\anaconda3\lib\site-packages\twisted\internet\_win32stdio.py", line 9, in <module>
import win32
importError: DLL load failed: 找不到指定的程序。
解决:
更新pywin32的版本成223: pip install pywin32==223