作者Luos (Soul)
看板Python
標題[問題] cmd下執行python 和 py2exe問題
時間Mon Feb 9 15:58:45 2009
就在今天我的Projrct終於能夠交差了..
立刻想到要來把它做成exe
看了版上的教學 就立刻來試試
結果如下...
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Mikage>cd /d D:\IVRBattle
D:\IVRBattle>python setup.py install
'python' is not recognized as an internal or external command,
operable program or batch file.
D:\IVRBattle>python setup.py py2exe
'python' is not recognized as an internal or external command,
operable program or batch file.
D:\IVRBattle>
似乎是不能用cmd 直接執行python>"<
求求各位大大幫幫我ㄒ.ㄒ
只差最後一步啦~
謝謝版上各位大大的幫忙~~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 128.223.228.110
推 StubbornLin:你沒有把Python安裝的路徑加到path裡 02/09 16:02
→ StubbornLin:打set path=c:\python25;c:\python25\Scripts\%path% 02/09 16:03
→ StubbornLin:再試試 02/09 16:03
推 a227tc:樓上說的沒錯,「我的電腦」點右鍵「內容」,在「進階」標 02/09 17:37
→ a227tc:籤下,選「環境變數」設定之即可。 02/09 17:38
→ Luos:StubbornLin大大..我試了將那行打入cmd 不過還是一樣.... 02/10 06:33
→ Luos:請問a227tc大大 在環境變數裡該如何設定... 02/10 06:34
→ Luos:感謝兩位大大的幫忙XD~~~~ 02/10 06:35
→ Luos:今天抓到時間 google了一下 成功啦XD~~~ 02/10 07:07
→ Luos:然後發現我的程式有問題...感謝兩位的幫忙 非常謝謝~~~ 02/10 07:08