2016-05-30 17 views
0

Windows XPでPython SimpleHTTPServerを設定したいと思います。私は自分のコンピュータにPythonをインストールしています。私は、次のコマンドを実行しています:Windows上でhttpサーバを作成する際にエラーが発生しました

python -m SimpleHTTPServer 8888 

をしかし、私はエラーを取得しています:PythonがあなたのPATH的環境変数にないよう

python : The term 'python' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

+0

あなたがWindowsのPATH環境変数にはPythonを追加する必要があります。 python.exeを含むディレクトリから同じコマンドを実行すると機能しますか? – 101

答えて

0

が見えます。これは、この答えを試す修正するには: https://stackoverflow.com/a/6318188/6400392

  1. Hold Win and press Pause.
  2. Click Advanced System Settings.
  3. Click Environment Variables.
  4. Append ;C:\python27 to the Path variable.
  5. Restart Command Prompt.
関連する問題