## 我太難了 經過一堆試驗 終於出了坑
總的來說:
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就成功啦