我已經安裝蟒32封裝到執行Python文件在視窗7 CMD
C:\ python32
我還設置路徑:
PYTHONPATH | C:\ Python32 \庫; C:\ Python32 \的DLL; C:\ Python32 \ LIB \ LIB-TK;
但我仍然無法運行使用cmd鍵入「python file.py」的文件。 我還應該做什麼?
謝謝你的答案
我已經安裝蟒32封裝到執行Python文件在視窗7 CMD
C:\ python32
我還設置路徑:
PYTHONPATH | C:\ Python32 \庫; C:\ Python32 \的DLL; C:\ Python32 \ LIB \ LIB-TK;
但我仍然無法運行使用cmd鍵入「python file.py」的文件。 我還應該做什麼?
謝謝你的答案
添加您的Python的安裝目錄PATH
:http://docs.python.org/using/windows.html#finding-the-python-executable
從CMD,執行path %path%;c:\python32
- 這將追加蟒蛇DIR環境路徑。
桂這裏的方法:http://www.computerhope.com/issues/ch000549.htm
此外,本作的詳細信息:http://en.wikipedia.org/wiki/PATH_(variable)
謝謝您的回答,它幫助了很多。 :) – John 2012-04-11 10:42:42
謝謝你,我會嘗試設置PATH :) – John 2012-04-11 10:43:02