今天使用了sublime导入Python项目,在调试过程中,遇到了以下问题:
Failed to import any qt binding
尝试方法1:在cmd窗口依次输入下列命令,即可解决上述问题。
pip uninstall matplotlib
python -m pip install --upgrade pip
pip install matplotlib
但是仍未解决问题,继而继续查找,尝试方法2:
pip3 install PyQt5 -i https://pypi.douban.com/simple
提示错误:qt.qpa.plugin: Could not find the Qt platform plugin “windows” in “”
才知道加上 https://pypi.douban.com/simple 后缀,使用国内服务器下载更快速。
未解决上一个问题,正在尝试解决中。