安装命令
安装pyside库所占用空间大概为136M,为避免网络请求问题建议添加国内源(如:清华源https://pypi.tuna.tsinghua.edu.cn/simple)
具体安装命令如下:
pip install pyside2 -i https://pypi.tuna.tsinghua.edu.cn/simple
执行该命令后会自行安装PySide2、PtQt5库
解决环境问题
未添加环境,在PyCharm运行时会出现如下错误:
This application failed to start because no Qt platform plugin could beinitialized . Reinstalling the application may fix this problem .Available platform plugins are : direct2d , minimal , offscreen , windows
仅需在path加入如下环境即可: