Set Up Python3 Virtual Environment

Create python virtual env

python3 -m venv venv
virtualenv venv

Activate python virtual env

Mac & Linux:

source venv/bin/activate



Then a (venv) sign will appear:

(venv) $ pip install [xxx]

Install Project Dependencies

pip install -r requirements.txt

How to Update requirements.txt

pip freeze > requirements.txt

Show Dependencies

pip show <packagename>

Pycharm interpreter setting

PyCharm is the IDE I will choose to run python code. With PyCharm, you can access the command line, connect to a database, create a virtual environment, …