파이썬에서 가상 환경을 활성화하는 방법
# for windows 10
py -m venv myvirtualenv
myvirtualenv\Scripts\activate #!!!! use "\" not "/" !!!!!
파이썬 만들기 virtualenv
pip install virtualenv # install first
cd projectfolder # go to project folder
python -m venv ./venv # Create a virtual environment named venv
Activate.ps1 # (powershell) start the file to start the environment
activate.bat # (cmd) start the file to start the environment
# if it worked you'll see a (venv) in front of your cursor path
가상 환경 파이썬 활성화
Install venv with this command:
pip install virtual env
Create a directory and type the following command in terminal:
python -m venv virtual <-- "The last word in command is the name of the venv, you can call it whatever you want."
Activate virtual environment:
source virtual/bin/activate
venv 파이썬을 활성화하는 방법
python3 -m venv tutorial-env
파이썬에서 venv 활성화
source tutorial-env/bin/activate