2013-06-02 92 views
1

我想在Python 3.3上安裝EasyGui,我沒有看到它。我已經得到它與Python 2.7的工作,但不是3.3。有人可以幫我解答EasyGui嗎?

我將從他們的網站上的說明:


Unpack the archive file into a temporary directory

Open a console window and navigate to the temporary directory.

At the command prompt, enter the command:

python setup.py install


但我不斷收到這個錯誤,當我使用命令 '進口easygui':

Traceback (most recent call last):

File "/pyshell#0/", line 1, in

import easygui 

ImportError: No module named 'easygui'

+3

我想你已經在你的路徑(2.7)中安裝了它的Python版本,所以你需要用'/ path/to/python3 setup.py install'。 –

+0

沒有文件或目錄 - 從終端。 – user2063042

+0

那麼,你必須用Python解釋器的真正路徑替換'/ path/to/python3' :) –

回答

2

對於Python 3你需要在安裝時調用python3,所以不要使用

python setup.py install 

你必須做

python3 setup.py install 
+0

我愛你。很多。很多。這花了我6個月的時間纔得到解答。六。謝謝。 – user2063042

+0

聖牛非常感謝你。 – user2063042

+1

@ user2063042:加註和選擇答案如何?這就是你所做的,而不是在這裏表示感謝。 :-) –

1

只是 「easygui.py」 添加到您的站點包目錄。它將與任何編輯工作。我使用的是Coderunner,而且我遇到了同樣的問題。我花了一個小時才弄明白了:)

相關問題