安装Qt for python开发环境
安装 Qt for python开发环境
一、安装 python (请参照 python 官网安装教程)
二、安装 pyside 2
有两种方法可以安装:
使用 pip 自动下载安装:
$ pip install --index-url=https://download.qt.io/official_releases/QtForPython/ pyside2
注意:要使用 https:
,否则会报 download.qt.io
是不受信任的源;
自行从 download.qt.io 下载所需的 whl 文件
然后使用下面的命令进行安装(注意 --user 参数):然后使用下面的命令进行安装(注意 --user
参数):
$ pip install ./PySide2-5.11.1-5.11.1-cp35.cp36.cp37-none-win_amd64.whl --user
注意
:这里因为我使用的 Python 是 3.6.6
,所以我使用这个 cp35.cp36.cp37
,如果是使用 python2,则要下Python2 对应的 wheel
Processing c:\users\kason\desktop\py\pyside2-5.11.1-5.11.1-cp35.cp36.cp37-none-win_amd64.whl
Installing collected packages: PySide2
The script pyside2-uic.exe is installed in 'C:\Users\kason\AppData\Roaming\Python\Python36\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed PySide2-5.11.1
发现提示我们已经安装成功
三、安装其他工具
安装 pylint