2016-12-04 2 views
0

내 노트북에 Django를 설치하려고했지만 Window PowerShell이 ​​버전을 인식하지 못합니다. 내 노트북에 파이썬 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'에 추가해야합니다. 승리를 위해 이렇게하려면 내 컴퓨터의 속성> 고급 시스템 설정> 환경 변수를 열고 '경로'를 선택하고 편집을 클릭하여 파이썬의 경로 위치에 추가하십시오. 또 다른 옵션은 파이썬 설치 guide는 쉘 다음 실행 말한다 :

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

또는 당신은 파이썬은 윈도우 명령 CD를 사용하여 설치 한 폴더로 현재 폴더를 변경할 수 있습니다. 예 :

cd c:\Python 

그 후 python --version이 작동해야합니다.

관련 문제