## 我太难了 经过一堆试验 终于出了坑
总的来说:
1.卸载pyqt5 命令:pip uninstall pyqt5
2.重新安装低版本的pyqt5
命令: pip install PyQt5==5.10.1
如果出现pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.问题
命令:pip --default-timeout=100 install pyqt5==5.10.0
突然打不开spyder了 提示ValueError: PyCapsule_GetPointer called with incorrect name
然后看了一堆回答 说是要卸载 qtpy和PyQt5
● 卸载qtpy之后输入spyder 提示:
然后 pip install qtpy==1.9.0(随便试的版本 事实证明不行)
● 尝试卸载pyqt5
pip uninstall pyqt5
然后 运行 pip install PyQt5==5.10.1 指定下载版本
过程中出现问题:
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
查到两种常用方法 解决下载过程中的time out问题:
pip --default-timeout=100 install pyqt5==5.10.0 (本人用的这种)
pip install PyQt5 -i https://pypi.tuna.tsinghua.edu.cn/simple/
重装好pyqt5再输入spyder就成功啦