user3410960
user3410960

Reputation: 473

How to install SQLAlchemy on Ubuntu?

I want to install Python and SQLAlchemy on Ubuntu. This is my command:

sudo easy_install sqlalchemy

But it has failed, what should I do?

Upvotes: 10

Views: 41099

Answers (3)

connelblaze
connelblaze

Reputation: 793

sudo pip install flask-sqlalchemy

This installs the SQLAlchemy package for Flask.

Upvotes: 4

Namita Maharanwar
Namita Maharanwar

Reputation: 711

I installed it using pip. After installing mysql-server, mysql-client and libmysqlclient15-dev and I ran following commands to install it.

pip install MySql-Python
pip install SQLAlchemy

Upvotes: 7

Karl Doenitz
Karl Doenitz

Reputation: 2230

Aha,sir,I can help you. First step,you should intall the MySql,like these:

sudo apt-get install mysql-server
sudo apt-get install mysql-client
sudo apt-get install libmysqlclient15-dev

Second step,install the python-mysqldb:

sudo apt-get install python-mysqldb

Third step,install the easy_install:

sudo wget http://peak.telecommunity.com/dist/ez_setup.py
sudo python ez_setup.py

Forth step,install the MySQL-Python:

sudo easy_install MySQL-Python

Finally,sqlalchemy:

sudo easy_install SQLAlchemy

Upvotes: 20

Related Questions