2016-09-04 15 views
0

私はGeanyで私のスクリプトを実行し、次のメッセージを取得しようとしている:Geany - Pythonの実行エラー:「内部または外部コマンドとして認識されていません」

"'C:\Users\Krishn' is not recognized as an internal or external command, operable program or batch file" 

は、以下のように私のビルド構成を参照してください。 :

Compile - C:\Users\Krishn Patel\AppData\Local\Programs\Python\Python35-32 -m py_compile "%f" 

Execute - C:\Users\Krishn Patel\AppData\Local\Programs\Python\Python35-32 "%f" 

ありがとうございます。

答えて

1

問題は、Windowsユーザー名に空白があることですKrishn Patel。あなたはそれの後ろに^を置くか、またはコマンドを"の間に置くことによって、そのスペースをエスケープする必要があります。 https://superuser.com/questions/279008/how-do-i-escape-spaces-in-command-line-in-windows-without-using-quotation-marks

+0

私が試した: " "C \ Krishnパテル\のAppData \ローカル\プログラム\ Pythonの\ Python35-32 -m py_compile \ユーザー" C:\ Users \ Krishn Patel \ AppData \ Local \ Programs \ Python \ Python35-32 ""%f "を取得して" C:\ Users \ Krishn Patel \ AppData \ Local \ Programs \ Python \ Python35 " -32 "'が内部または外部のコマンド、実行可能なプログラムまたはバッチファイルとして認識されない" – Krishn

+0

pythonがインストールされていて、そのパスがPythonインタプリタを指していますか? – Tempux

0

問題を解決し、デフォルトに設定 Execの:パイソン "%fを"

関連する問題