install PySide2 on python 2.7

在Ubuntu 16.04上面直接pip install PySide2可以成功,换到树莓派3B上面就不行。
Snipaste_2020-06-17_12-10-27.png

阅读 4.7k
2 个回答

For python3:

sudo apt-get install python3-pyside2.qt3dcore python3-pyside2.qt3dinput python3-pyside2.qt3dlogic python3-pyside2.qt3drender python3-pyside2.qtcharts python3-pyside2.qtconcurrent python3-pyside2.qtcore python3-pyside2.qtgui python3-pyside2.qthelp python3-pyside2.qtlocation python3-pyside2.qtmultimedia python3-pyside2.qtmultimediawidgets python3-pyside2.qtnetwork python3-pyside2.qtopengl python3-pyside2.qtpositioning python3-pyside2.qtprintsupport python3-pyside2.qtqml python3-pyside2.qtquick python3-pyside2.qtquickwidgets python3-pyside2.qtscript python3-pyside2.qtscripttools python3-pyside2.qtsensors python3-pyside2.qtsql python3-pyside2.qtsvg python3-pyside2.qttest python3-pyside2.qttexttospeech python3-pyside2.qtuitools python3-pyside2.qtwebchannel python3-pyside2.qtwebsockets python3-pyside2.qtwidgets python3-pyside2.qtx11extras python3-pyside2.qtxml python3-pyside2.qtxmlpatterns python3-pyside2uic

For python2:

sudo apt-get install python-pyside2.qt3dcore python-pyside2.qt3dinput python-pyside2.qt3dlogic python-pyside2.qt3drender python-pyside2.qtcharts python-pyside2.qtconcurrent python-pyside2.qtcore python-pyside2.qtgui python-pyside2.qthelp python-pyside2.qtlocation python-pyside2.qtmultimedia python-pyside2.qtmultimediawidgets python-pyside2.qtnetwork python-pyside2.qtopengl python-pyside2.qtpositioning python-pyside2.qtprintsupport python-pyside2.qtqml python-pyside2.qtquick python-pyside2.qtquickwidgets python-pyside2.qtscript python-pyside2.qtscripttools python-pyside2.qtsensors python-pyside2.qtsql python-pyside2.qtsvg python-pyside2.qttest python-pyside2.qttexttospeech python-pyside2.qtuitools python-pyside2.qtwebchannel python-pyside2.qtwebsockets python-pyside2.qtwidgets python-pyside2.qtx11extras python-pyside2.qtxml python-pyside2.qtxmlpatterns python-pyside2uic

pyside2是针对python3的库
执行pip3 install PySide2 试一下

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题