如何在 Ubuntu 16.04 中安装 pyside2-uic?

How to install pyside2-uic in Ubuntu 16.04?

我试过使用 :

安装 Pyside2-uic
sudo apt-get install -y python-pyside2
sudo apt-get install pyside2-tools

当我使用 pyside2-uic 将 .ui 文件转换为 .py 时,我仍然收到错误消息“ImportError: No module named pyside2uic.driver”

Traceback (most recent call last):
  File "/usr/bin/pyside2-uic", line 28, in <module>
    from pyside2uic.driver import Driver
ImportError: No module named pyside2uic.driver

如何解决这个错误

我尝试了这些命令并且有效。

$ apt-get install wget python-pip python-dev software-properties-common
$ add-apt-repository ppa:beineri/opt-qt561-trusty
$ apt-get update
$ apt-get install qt56-meta-full
$ . /opt/qt56/bin/qt56-env.sh
$ wget https://bintray.com/fredrikaverpil/pyside2-wheels/download_file?file_path=ubuntu14.04%2FPySide2-2.0.0.dev0-cp27-none-linux_x86_64.whl -O PySide2-2.0.0.dev0-cp27-none-linux_x86_64.whl
$ pip install PySide2-2.0.0.dev0-cp27-none-linux_x86_64.whl
$ pyside2-uic