I've struggle with using MySQLdb
. In my project (Python 2.7) I had:
import MySQLdb
In responce: ImportError: No module named MySQLdb
.
app.yaml:
libraries:
- name: MySQLdb
version: latest
I found that MySQLdb
is a part of predefined standard modules. Yet still I couldn't solve it. When
pip install -t /lib MySQLdb
the responce was:
Collecting MySQLdb
Could not find a version that satisfies the requirement MySQLdb (from versions: ) No matching distribution found for MySQLdb
So I followed some tuts and did like that:
sudo apt-get install python-mysqldb
while installing I've got:
You are running apt-get inside of Cloud Shell. Note that your Cloud Shell machine is ephemeral and no system-wide change will persist beyond session end.
Indeed these changes persisted for session span only.
Any comments, suggestions? Do I do smth. wrong?