Python In VScode

Author Avatar
Young Hug Sep 08, 2020

Using virtual environment

To create a virtual environment, use the following command, where “.venv” is the name of the environment folder:

1
2
3
4
5
6
7
# macOS/Linux
# You may need to run sudo apt-get install python3-venv first
python3 -m venv .venv

# Windows
# You can also use py -3 -m venv .venv
python -m venv .venv

This blog is under a CC BY-NC-SA 3.0 Unported License
Link to this article: https://younggod.netlify.app/2020/09/08/practice/pythonInVSCode/