pyside show.ui> showGui.py错误:没有名为pkg-resources的模块(Windows 7 64位)

时间:2013-05-09 16:04:55

标签: qt pyside

我正在尝试将.ui文件转换为.py文件,但它在标题中找不到上面命名的模块。 有关我的设置的信息(也许这是问题?):

C:\ Entwicklung \ Python33< == Python v.3.3.0,64位

C:\ Entwicklung \ Python33 ...< ==与pyside v.1.1.2,64位(来自Python33的IDLE可以找到pyside正确)

C:\ Entwicklung \ Qt \ Qt5.0.2< == Qt 5.0.2-mingw47_32-x86-offline,32位

(我为Qt使用了32位,因为我希望,包括Qt-Designer ......但是没有......顺便说一句,设计师在哪里?)

使用命令行cmd导航到文件夹中 放置pyside-uic.exe的C:\ Entwicklung \ Python33 \ Scripts,并将我的show.ui文件放入此文件夹。然后我跑了 “pyside-uic.exe show.ui -o showGui.py”并出现标题中显示的错误!

我做错了什么?

1 个答案:

答案 0 :(得分:0)

您需要安装分发包。 下载并运行distribute_setup.py [python-distribute.org/distribute_setup.py]

python.exe distribute_setup.py