2010-09-10 32 views
6

我遵循他們在pyside.org上所說的話,但不知何故我無法使其工作。 我下載了兩個文件,他們正在從他們的網站鏈接(Qt庫和pyside爲Python 2.6)關於如何在Windows上安裝PySide的步驟

當我嘗試自己的例子之一,我得到了以下信息:

Traceback (most recent call last): 
    File "2dpainting.py", line 28, in <module> 
    from PySide.QtCore import * 
ImportError: DLL load failed: The specified module could not be found. 

我使用Python 2.6 .4和windows 7

回答

6

您需要將QT bin目錄(「C:\ Qt \ 4.6.3 \ bin」)添加到您的路徑環境變量中。

+0

謝謝!我將你提到的目錄添加到環境變量「Path」中。 – Forested 2010-09-10 19:43:39

+1

不客氣。如果它解決了你的問題,請除了答案。 – Mark 2010-09-10 19:50:28