- Clone the repo
- Create the virtual environment:
virtualenv venv - Activate virtual environment:
source venv/bin/activate - Install packages:
pip install -r requirements.txt - Make sure environment is set up:
./test_venv.py - Anything
pipinstalls will be reflected in venv;pip freeze > requirements.txtto update - Deactivate it when finished:
deactivate
Before installing the Python MySQL connector, MySQL must be installed locally (otherwise I got pip errors):
- On macOS:
brew install mysql - Note:
brew install mysql-connector-cdidn't fix thepiperrors--if you already did,brew unlink mysql-connector-cand just installmysql
Then, in virtual environment, install a python mysql package:
pip install pymysql(import pymysql) orpip install mysqlclient(import MySQLdb)- Note: kept having different issues arise with mysqlclient; recommend pymysql instead