본문 바로가기
● IDE, System/VSCODE

[장고 에러] ImportError: Couldn't import Django. Are you sure it's installed and ava

by 0ver-grow 2021. 2. 23.
반응형

오류명

ImportError: Couldn't import Django. 

Are you sure it's installed and available on your PYTHONPATH environment variable? 

Did you forget to activate a virtual environment?

 

원인

가상환경에 django가 설치되어 있지 않기 때문

 

해결

가상환경에서 하단 코드입력하여 설치 진행

pip install django

 


설치 후 하단 경고 발생

WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.

You should consider upgrading via the 'c:\users\topgu\appdata\local\programs\python\python39\python.exe -m pip install --upgrade pip' command.

 

 

문제 해결 링크 : 0ver-grow.tistory.com/892

 

반응형