environmental model python txt file download code example

Example 1: pip install from requirements.txt

$ pip install -r requirements.txt

Example 2: install requirements.txt in pip command

note: yor should be on the same dir as requirements.txt file 

pip install -r requirements.txt

Example 3: how to use virtual environment python

python3 -m venv env

Example 4: how to set up python virtual environment

# install the package virtualenv
pip install virtualenv

# setup envioronment for Data engineering pipeline
virtualenv dataengineer_pipeline

# if using python >= 3.3
python -m venv dataengineer_pipeline

# start the environment in linux using 
dataengineer_pipeline/bin/activate

# or in windows
dataengineer_pipeline\Scripts\activate.bat

# when you are done using the environment, type in the command below
deactivate

Example 5: how to use virtual environment python

source env/bin/activate

Example 6: how to use virtual environment python

python3 -m pip install --user virtualenv

Tags:

Css Example