[問題] cmd下執行python 和 py2exe問題

看板Python作者 (Soul)時間16年前 (2009/02/09 07:58), 編輯推噓2(208)
留言10則, 3人參與, 最新討論串1/1
就在今天我的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

02/09 16:02, , 1F
你沒有把Python安裝的路徑加到path裡
02/09 16:02, 1F

02/09 16:03, , 2F
打set path=c:\python25;c:\python25\Scripts\%path%
02/09 16:03, 2F

02/09 16:03, , 3F
再試試
02/09 16:03, 3F

02/09 17:37, , 4F
樓上說的沒錯,「我的電腦」點右鍵「內容」,在「進階」標
02/09 17:37, 4F

02/09 17:38, , 5F
籤下,選「環境變數」設定之即可。
02/09 17:38, 5F

02/10 06:33, , 6F
StubbornLin大大..我試了將那行打入cmd 不過還是一樣....
02/10 06:33, 6F

02/10 06:34, , 7F
請問a227tc大大 在環境變數裡該如何設定...
02/10 06:34, 7F

02/10 06:35, , 8F
感謝兩位大大的幫忙XD~~~~
02/10 06:35, 8F

02/10 07:07, , 9F
今天抓到時間 google了一下 成功啦XD~~~
02/10 07:07, 9F

02/10 07:08, , 10F
然後發現我的程式有問題...感謝兩位的幫忙 非常謝謝~~~
02/10 07:08, 10F
文章代碼(AID): #19Z-8suk (Python)
文章代碼(AID): #19Z-8suk (Python)