VirtualEnv - Should I ignore the venv folder?

11,124

You should add it to gitignore file. Then, you should create requirements.txt file and populate it with the packages you have installed. Then, on your production server, create the virtual environment and run pip install -r requirements.txt.

Read this to learn more about the requirements file.

Share:
11,124

Related videos on Youtube

Sreekar Mouli
Author by

Sreekar Mouli

Geek

Updated on September 16, 2022

Comments

  • Sreekar Mouli
    Sreekar Mouli over 1 year

    I am starting to understand the advantages of virtualenv. Now, I have created virtualenv folder named venv by doing virtualenv venv.

    Now my question is, Is it useful to push this folder to github or should I add it to .gitignore?