Error after os upgrade Ubuntu 17.04

Maybe try this -

pip uninstall mysql-python
apt-get install libmysqlclient-dev
pip install mysql-python

You will find the above here Error while installing erpnext bench init frappe-bench && cd frappe-bench - #3 by ninjas