Virtual Environment
Make virtual environment
$ pip install virtualenv
$ virtualenv mypythonStart virtual environment
$ source mypython/bin/activateDeactivate virtual environment
$ deactivateStart virtual environment in Python3
$ virtualenv -p python3 <envname>Environment variables inside virtual environment
$ vi .env
>> Type your environment variables in this file (VAR=VALUE)
$ pip install python-dotenvSwitch python version in virtualenv
Use case: Some dependencies are not supported by Python3.8 yet.
Last updated
Was this helpful?