pyside2安装问题

下载两个 .whl文件到本地,

shiboken2-5.13.2-5.13.2-cp35.cp36.cp37-abi3-manylinux1_x86_64.whl

PySide2-5.13.2-5.13.2-cp35.cp36.cp37-abi3-manylinux1_x86_64.whl

然后依次

pip install Downloads/shiboken2-5.13.2-5.13.2-cp35.cp36.cp37-abi3-manylinux1_x86_64.whl

pip install Downloads/PySide2-5.13.2-5.13.2-cp35.cp36.cp37-abi3-manylinux1_x86_64.whl

安装成功!

再添加QT_QPA_PLATFORM_PLUGIN_PATH环境变量,否则会遇到"qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found."错误

环境变量添加方法:在.bashrc 中添加

export QT_QPA_PLATFORM_PLUGIN_PATH="/home/xxx/anaconda3/lib/python3.7/site-packages/PySide2/Qt/plugins/platforms"

你可能感兴趣的:(pyside2安装问题)