using Mysql and SqlAlchemy in Pyramid Framework

北城余情 提交于 2019-12-06 05:35:33

Try adding "MySQLdb" to the requires list. It was fine with sqlite3 as that comes with python (as of version 2.5), MySQLdb doesn't and needs to be installed separately.

UPDATE:

Try "mysql-python" in the requires list instead.

Okay i Solved my own question by following the directions on this page http://www.saltycrane.com/blog/2010/02/install-mysqldb-virtualenv-ubuntu-karmic/

There is the huge list of Unofficial Windows Binaries for Python Extension Packages which are extremely useful for Windows users.

http://www.lfd.uci.edu/~gohlke/pythonlibs/

Solved in ubuntu environment

  1. sudo apt-get build-dep python-mysqldb
  2. source /bin/active && pip install MySQL-python
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!