ERROR: Exception: Traceback (most recent call last): 请求超时 解决方法:用 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple Twisted
Twisted-18.9.0-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform 下载whl文件不匹配 解决方法:去https://www.lfd.uci.edu/~gohlke/pythonlibs下载对应的whl下载(我的python是3.8版本,64位) 所以应该下载这个版本 wisted-20.3.0-cp38-cp38-win_amd64.whl
打开cmd命令行,输入 py
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)] on win32 Type “help”, “copyright”, “credits” or “license” for more information.则选择win32.whl
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 64 bit (AMD64)] on win32 Type “help”, “copyright”, “credits” or “license” for more information.则选择win_amd64.whl
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -(Session info: chrome=80.0.3987.149) (Driver info: chromedriver=2.30.477700 (0057494ad8732195794a7b32078424f92a5fce41),platform=Windows NT 10.0.17134 x86_64) webDriver版本号和Google Chrome版本号不对应 解决方法:Google Chrome驱动版本过低,更新驱动即可
之前还遇到过这种问题,浏览器和驱动都是对应的,但是写代码的时候,无法调用XXX.get(“https://www.baidu.com”)来打开百度网页。报错信息没保留。 解决方法:更新Google Chrome浏览器,并下载了对应的网页驱动
错误安装
pip install cv2 正确安装 pip install opencv-python
错误调用
import opencv-python 正确调用 import cv2
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -