In Python, there is a way to create a virtual environment using venv or virtualenv which helps us to handle different python packages installation for multiple projects. It helps to separate out python installation and install different packages in a virtual environment.
To use virtualenv you need to install it. here are the steps to install virtualenv.
brew install python
python -V
python -m pip install --user --upgrade pip
pip install --user virtualenv
python -m
# below step on location where you want venv
python -m venv venv
source venv/bin/activate
Congratulations !!!🎉, you’ve successfully installed venv and activated it.
No comments:
Post a Comment