Setup Python Env

Author Avatar
Young Hug May 23, 2021

There are two steps for setting your python virtual environment:

  1. Create and activate the virtual environment
1
2
3
# .venv is the fold name and you can change it
python3 -m venv .venv
source .venv/bin/activate

Note:

Using the following command dactivate to deactive the virtual environment

  1. Install and uninstall the packages like normal

    1
    2
    3
    pip3 install {YourPackages}

    pip3 uninstall {YourPackages}

This blog is under a CC BY-NC-SA 3.0 Unported License
Link to this article: https://younggod.netlify.app/2021/05/22/Practice/python/setupEnv/