Where is pyside-uic?

流过昼夜 提交于 2019-12-12 08:38:18

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!