Virtual ENV / virtualenvwrapper

source bin/activate // activate ENV from ENV directory

mkproject /path/to/project // use virtualenvwrapper to create a project

mkvirtualenv /path/to/env
mkvirtualenv -p /usr/bin/python3 // -p to flag which python
setvirtualenvproject /path/to/env /path/to/project // link virtualenv to virtualenvwrapper project
setvirtualenvproject $VIRTUAL_ENV $(pwd) // run from project directory after creating virtualenv

workon /path/to/env // activate

Python3 comes with its own virtualenv called venv
python3 -m venv /path/to/env // create env
python3.6 -m venv /path/to/env // create env specifying python 3.6


pip install [package]
pip freeze > requirements.txt // add dependencies to requirements.txt
pip install -r requirements.txt // install all dependencies as stated in requirements.txt


touch table.db // create db table file
sqlite3 table.db // start sqlite3 session
.databases // list databases
.exit // exit sqlite3
.table // list tables
.schema // list schema

Django startproject mysite // create new app
python runserver // run development server
python collectstatic // collect static files


ever2simple my_evernote.enex > simplenote.json


python -B export.enex > import.json