DEV Community

Discussion on: Setting up a Django project like a pro

Collapse
 
devanghingu profile image
Devang Hingu

hello. actually i newbie in django. therefore i have questions that what is difference in virtualenv and pipenv.?

Collapse
 
fceruti profile image
fceruti

They are not the same, but they are related. Think of your whole computer as an environment where you can install pieces software. Because we are developing different projects, with different dependencies, if we just installed all of them in your "computer environment", they would get mixed and that would be awful.

Here comes Virtual Environments to the rescue. This is the technique of creating a sandbox for each project, where you can install dependencies without affecting the rest of your projects. pipenv is a tool to manage such environments.

Collapse
 
devanghingu profile image
Devang Hingu

can i install both at time over machine?

Thread Thread
 
fceruti profile image
fceruti

I'm not sure what you mean. Can you explain it again?

Thread Thread
 
devanghingu profile image
Devang Hingu

umm.. i mean, can i install virtualenv and pipenv both at time in my machine(on Debian based system).

Thread Thread
 
fceruti profile image
fceruti

Yes you can and you should. I think you need to review this subject with a little more depth. I suggest you read this article realpython.com/python-virtual-envi...

Collapse
 
devanghingu profile image
Devang Hingu

ok got it. thanks you..