DEV Community

loading...

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 Author

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 Author

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 Author

wow, I'll see it, thanks <3