This lesson covers how to create a virtual environment in a project folder. You learned that following the steps below will install a self contained Python environment in your project directory:
- Create a project directory
- Change into the project directory
- Run
python3 -m venv <name_of_virtualenv>
Andreas Schipplock on April 7, 2019
Hi, is this still considered a best-practice to create the venv inside the project? I somewhere read it’s advised to create all of your venvs inside ~ (or $HOME).
I’m just curious :).
Thanks in advance.
Regards, Andreas