Python

pip

Download the get-pip.py

# install pip
sudo python get-pip.py

# check pip
pip freeze
pip freeze | sort | column -t

miniconda

# create new environment
conda create --name [env_name]

# activate the environment
conda activate [env_name]

Framework

Flask

Start an app

// Some code
sudo sed -i 's/8080/5000/g' app.py; python app.py

Django

Gunicorn

Start app
# start python app with 3 workers
# myapp.py
gunicorn -w 3 myapp:app

Last updated