2016-12-04 8 views
0

私のラップトップにDjangoをインストールしようとしましたが、Windows PowerShellはバージョンを認識しません。私は私のラップトップ上のpython 3.5.2をインストールしますが、私はエラーを取得:Djangoをインストールできない

PS C:\Users\Work> python --version 

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. At line:1 char:1 + python --version + ~~~~~~ + CategoryInfo : ObjectNotFound: (python:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException

答えて

1

問題はpython.exeがどこにあるか、あなたのOSが認識できなかったということでしょうです。これを解決するには、システムの変数 'path'にpythonパスを追加する必要があります。 これを行うには7勝つために私のコンピュータのプロパティ>高度なシステム設定>環境変数> 'パス'を選択>編集をクリックして、pythonのパスの場所に追加します。 別のオプションは、とPythonのインストールguideがシェル次に実行されると言う:

[Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Python27\;C:\Python27\Scripts\", "User") 

それとも、ただPythonが、WindowsのコマンドCDを使用してインストールされたフォルダにカレントフォルダを変更することができます。例:

cd c:\Python 

その後、python --versionが動作するはずです。

関連する問題