DEV Community

Discussion on: How do you organize your virtual environments?

Collapse
 
davidmm1707 profile image
David MM๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป

pipenv environment at the root level of each project

I don't know if this is the proper way or not, so if anyone knows a better way, feel free to give me (us) tips.

Collapse
 
furtleo profile image
Leonardo Furtado

I used it like that too, but sometimes I did git add. and sent my environment to Github by mistake.

Collapse
 
davidmm1707 profile image
David MM๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป

That's why .gitignore exists ๐Ÿ˜€

Thread Thread
 
furtleo profile image
Leonardo Furtado

It is ok to add the virtual environment in gitignore to personal projects, but what if the project is from another user? :/

Thread Thread
 
nicolaerario profile image
Nicola Erario

You can set your local โ€œglobal.gitignoreโ€.

Thread Thread
 
furtleo profile image
Leonardo Furtado

wow, I'll see it, thanks <3