본문 바로가기
Trouble Shooting

Python 가상 환경 설정 시 Python virtual environment was successfully activated, even though "(env)" indicator may not be present in the terminal prompt 오류 해결

by 파이현 2025. 2. 17.

python -m venv 명령어를 통해서 가상환경을 만든 후 아래와 같은 오류가 뜹니다.

Python virtual environment was successfully activated, even though "(new_env)" indicator may not be present in the terminal prompt

 

pip install -r requirements.txt가 정상적으로 실행된 후에는 해당 오류를 해결하기 수월합니다!

 

1. ./가상환경파일/Scripts까지 들어가 줍니다.

cd new_env  # cd 가상 환경명
cd Scripts

 

2. activate 파일 실행

activate

 

 

activate 파일을 실행하면 아래와 같이 indicator가 생기게 됩니다!