anaconda Pycharm安装 pyqt5/pyqt5-tools/pyqtwebengine

anaconda中安装pyqt5出现

终端中pip安装pyqt5使用

pip install pyqt5 pyqt5-tools

出现如下错误

pip._vendor.urllib3.exceptions.ReadTimeoutError:
 HTTPSConnectionPool(host=
 'pypi.tuna.tsinghua.edu.cn', port=443):
  Read timed out.
ERROR: spyder 4.0.1 requires pyqtwebengine<5.13;
python_version >= "3", which is not installed.
ERROR: pyqt5-tools 5.13.0.1.5 has requirement
pyqt5==5.13.0, but you'll have pyqt5 5.12.1 which is incompatible.

为了解决如上错误

  1. 安装pyqt5==5.12.1
  2. 安装pyqtwebengine==5.12.0
  3. 安装pyqt5-tools==5.12.1.1.5rc4
#1.安装pyqt5语句
pip install pyqt5==5.12.1 
-i http://pypi.douban.com/simple --trusted-host pypi.douban.com`
#2.安装pyqtwebengine==5.12.0语句
pip install pyqtwebengine==5.12.0 
-i http://pypi.douban.com/simple --trusted-host pypi.douban.com
#3.安装pyqt5-tools==5.12.1.1.5rc4语句
pip install pyqt5-tools==5.12.1.1.5rc4 
-i http://pypi.douban.com/simple --trusted-host pypi.douban.com

镜像:-i http://pypi.douban.com/simple --trusted-host pypi.douban.com

本文借鉴

https://blog.csdn.net/simonforfuture/article/details/103962936
https://blog.csdn.net/qq_42466324/article/details/104594472

你可能感兴趣的:(anaconda Pycharm安装 pyqt5/pyqt5-tools/pyqtwebengine)