开发者

ImportError: No module named PySide.QtCore

I have trouble using PySide in Eclipse.

I installed py26-pyside using macports and added /opt/local/var/macports/software/py26-pysid开发者_运维百科e/1.0.4_0/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/PySide to PYTHONPATH

But I got the above import error.

What am I missing? Thanks


Add /opt/local/var/macports/software/py26-pyside/1.0.4_0/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages to PYTHONPATH instead of what you have added.


Running Linux, I had the same problem and I don't use PYTHONPATH. Simpler to put /usr/local/lib/python2.6/site-packages in a file called /usr/lib/python2.6/site-packages/local.pth. It's pure python so it should work on other systems. The instructions in site.py are misleading.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜