美文网首页
pyside2安装问题

pyside2安装问题

作者: musicriver | 来源:发表于2019-12-05 16:06 被阅读0次

    下载两个 .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安装问题

          本文链接:https://www.haomeiwen.com/subject/iaodgctx.html