第一步:
在終端輸入spyder return
,若有錯誤提示,且為ValueError: PyCapsule_GetPointer called with incorrect name
,則執行pip uninstall pyqt5
,再執行pip install PyQt5==5.11.3 -i https://pypi.tuna.tsinghua.edu.cn/simple/
,我的成功打開。若無錯誤提示,看第二步。
第二步:
再在cmd終端輸入spyder --reset
,若有錯誤,查看錯誤提示,若無,重啟看是否能夠打開。
spyder --reset參考教程:[https://blog.csdn.net/u014114990/article/details/49914395]
提示框的官方文件:https://github.com/spyder-ide/spyder/wiki/Troubleshooting-Guide-and-FAQ