import os
from dotenv import load_dotenv
load_dotenv()
GCP_PROJECT_ID = os.getenv('GCP_PROJECT_ID')
SERVICE_ACCOUNT_FILE = os.getenv('SERVICE_ACCOUNT_FILE')
STORAGE_BUCKET_NAME = os.getenv('STORAGE_BUCKET_NAME')
#------FOR LINUX/MAC---------#
sudo apt-get install build-essential libssl-dev libffi-dev python-dev #installing requirements
sudo apt-get install -y python3-venv #installing venv
python3 -m venv env #creating virtual env
source env/bin/activate #activating virtual env
#-------FOR WINDOWS----------#
py -m pip install --user virtualenv #installing venv
py -m venv env #creating virtual env
.envScriptsactivate #activating virtual env
$ pip install virtualenv
python3 -m venv tutorial-env
tutorial-envScriptsactivate.bat (window)
source tutorial-env/bin/activate (linux)
$ virtualenv --version
$ source venv/bin/activate
$ cd project_folder
$ virtualenv venv
$ virtualenv -p /usr/bin/python2.7 venv
# Creating New conda Env.
Conda create -n my_env python == 3.6.9
Conda activate -n my_env
pip install jupyter
$ export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python2.7
$ pip install --user pipenv