Virtual Environment

Hi everyone!

I am in the Command Line: Intermediate course and in the challenge mission we are advised to create the virtualenv in the script’s directory. I wonder which is the best directory to put it generally. Is it the project’s directory itself or somewhere else?

Thank you!

It’s good practice to create virtual environment directory within the project’s directory. Then you clearly see which virtualenv is used by this project.

But you can create it anywhere in your system. For instance, you may want to create special directory for virtual environments and create all your virtual environments there and then activate required one with source /path/to/ENV/bin/activate

2 Likes

Once again to the point.
Thank you @ranklord.

2 Likes