Reputation: 473
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
Reputation: 793
sudo pip install flask-sqlalchemy
This installs the SQLAlchemy package for Flask.
Upvotes: 4
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
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