Basic Python Pyramid Virtual Environment

Init

sudo apt-get install virtualenv python-pip python-dev
pip install –upgrade pip setuptools
pip install pyramid gunicorn waitress

check pip settings in ~/.local/bin/pip

Python 3.6

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.6
python3.6
virtualenv –python=python3.6 name_of_ve_dir

Create Virtual Environment from Pyramid setup.py

virtualenv –python=python3.6 ve4e9
source ve4e9/bin/activate
cd MyProject
python setup.py install
pserve development.ini

Activate Virtual Environment

source ve4e9/bin/activate

Pyramid Bakery

pip install cookiecutter

Create simple

cookiecutter gh:Pylons/pyramid-cookiecutter-starter
pip install -e “.[testing]”
pserve development.ini

Create Alchemy

cookiecutter gh:Pylons/pyramid-cookiecutter-alchemy
pip install -e “.[testing]”
initialize_MyProject_db development.ini
pserve development.ini

Clone

git clone ssh://account@repositoryurl.com/~/MyProject

Invoke

cd MyProject
pserve development.ini