
Managing python virtual environments
If you are working on multiple projects you might have run into a problem — different projects requiring different versions of the same package. Today we are going to solve this with python virtual environments. You'll learn what they are, how to create and use them, and how they actually work under the hood. Why to use virtual env Imagine you are working on the two projects that both use the requests package as a project dependency. Now you will have a dilemma. If you installed requests package system-wide you will have to use same package version for the both projects. But, let's say your first project is in a production state and you have to stick with the specific package version. On the other hand while building your second project you want to use new features from the latest package release. Luckily you can use virtual environments! What is the virtual env Virtual environment is the isolated python environment which allows you to manage dependencies separately. Create virtual env
Continue reading on Dev.to Tutorial
Opens in a new tab




