Posts

Showing posts with the label Python

How To Create Virtual Environments For Your Python Projects

Image
Have you ever heard of virtual environments? If you are a beginner, then you might not have heard of them, but if you are an experienced Python developer, then they must be a part and parcel of your life. Creating a separate virtual environment for each of your Python projects is a good practice for it prevents various dependency and compatibility issues and keeps your main system clean. The main purpose of Python virtual environments is to create an isolated environment for each of your projects. For example, if you want to use an older version of a library or module in one project and the recent version in another, then you can conveniently create separate virtual environments for each of these projects.  In this blog post, I'll cover how you can easily create and use a virtual environment using virtualenv in 9 easy to follow steps . 1. Install virtualenv In order to install it just type the following command in the shell.  pip install virtualenv 2. Test y...