:bulb: Python 가상 환경(Virtual Environment)을 구성하는 방법을 작성한다.

:triangular_flag_on_post: 작성 중

[01] pipenv

1
2
3
4
5
6
7
8
9
10
11
12
apt-get install -y python3-pip
pip3 install --user pipenv

export PIPENV_VENV_IN_PROJECT=true

mkdir venv
cd venv

python3 -m pipenv --python 3.6
python3 -m pipenv install

python3 -m pipenv shell

[02] venv

1
2
3
4
5
6
7
python -m venv venv

# Windows
.venv/Script/activate

# Linux
source .venv/bin/activate