问题
I'm trying to use Qt Designer and pyside-uic mydesign.ui > design.py
however, this program doesn't exist. I looked in site packages under python 2.7, and I see: pyside-lupdate.exe pyside-rcc.exe
and a bunch of other programs, but there is no such thing as pyside-uic.exe ... why ?? Why is it missing from the installation package? Where do I get it?
回答1:
You should see a /Python27/Scripts/pyside-uic.exe. But I'm wondering why it's not visible (not executable). Maybe it's a packaging problem (permissions, etc). You could try to call it using the complete path.
回答2:
If you installed PySide with homebrew, you need to install pyside-tools
package also to get these command line tools:
$ brew install pyside-tools
回答3:
When I installed using conda, the py-uic.exe was not unpacked. The problem was fixed by uninstalling and using pip.
>pip install pyside
回答4:
For Mac it worked for me running the following command (needed to have macports installed):
sudo port install py27-pyside-tools
It installs on my Python 2.7 environment. I hope it helps.
回答5:
In case someone need it, for Ubuntu 18.04 I need to install pyside-tools package first. Hope that helps.
sudo apt-get install pyside-tools
来源:https://stackoverflow.com/questions/6684180/where-is-pyside-uic