我在我的机器(Ubuntu 13.04 x64)上为 python 3.3 编译了 PySide 1.2.0,但是,由于某种原因,pyside-tools 没有得到“编译”。
当我尝试执行 pyside-uic(安装后)时,出现此错误:
Traceback (most recent call last):
File "/usr/local/bin/pyside-uic", line 9, in <module>
load_entry_point('PySide==1.2.0', 'console_scripts', 'pyside-uic')()
File "/usr/local/lib/python3.3/dist-packages/distribute-0.6.49-py3.3.egg/pkg_resources.py", line 345, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python3.3/dist-packages/distribute-0.6.49-py3.3.egg/pkg_resources.py", line 2382, in load_entry_point
return ep.load()
File "/usr/local/lib/python3.3/dist-packages/distribute-0.6.49-py3.3.egg/pkg_resources.py", line 2088, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/local/lib/python3.3/dist-packages/PySide-1.2.0-py3.3.egg/PySide/scripts/uic.py", line 28, in <module>
from pysideuic.driver import Driver
ImportError: No module named 'pysideuic'
egg 文件没有 pysideuic 文件夹。当我检查 pyside_install/py3.3-qt4.8.4-64bit-release/lib 文件夹时,我发现存在一个“python2.7”文件夹!!
我使用此页面中的说明构建源代码:https ://pypi.python.org/pypi/PySide 。
请帮忙。