Install Python 3.7 on Ubuntu sudo add-apt-repository ppa:deadsnakes/ppa sudo apt-get update sudo apt-get install -y virtualenv python3.7 python3.7-dev Python - MySQL Connector sudo apt-get install libmysqlclient-dev pip install mysqlclient