파이썬 만들기 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
venv python3 만들기
# CREATE FOLDER FOR A PROJECT
mkdir project_folder
cd project_folder
# CREATE VIRTUAL ENVIRONMENT
python3.7 -m venv myvenv
# or alternativelly
virtualenv myvenv --python=python3.7
# ACTIVATE VIRTUAL ENVIRONMENT
source myvenv/bin/activate
파이썬 가상 환경을 설정하는 방법
# install the package virtualenv
pip install virtualenv
# setup envioronment for Data engineering pipeline
virtualenv dataengineer_pipeline
# if using python >= 3.3
python -m venv dataengineer_pipeline
# start the environment in linux using
dataengineer_pipeline/bin/activate
# or in windows
dataengineer_pipeline\Scripts\activate.bat
# when you are done using the environment, type in the command below
deactivate
python3.7 에서 환경을 만드는 방법
# by runnin this command you can directly create python environment in with python3.7 version
python3.7 -m venv <venv_name>
venv 활성화
venv\Scripts\activate.bat
파이썬 3.8 에서 가상 환경 만들기
c:\>python -m venv c:\path\to\myenv