[Django]-Missing header files while installing packages using pip

0πŸ‘

βœ…

You need to install the header files for mysql library.
I don’t know for your distrib, on Ubuntu the package name is libmysqlclient-dev.

By the way, if starting a new project, I would recommend PostgreSQL over MySQL, because support for MySQL is uncertain at best.

edit: turns out things change, there are now bindings for Python 3

πŸ‘€spectras

1πŸ‘

yum info mysql-devel

If it’s not installed, install it

yum install mysql-devel

Now try

sudo pip install mysql-python
πŸ‘€A J

0πŸ‘

Installing mysql-dev solved my problem as well. Thanks a lot!

πŸ‘€Atul gupta

-2πŸ‘

yum install mysql-devel 

and then

pip install MySQL-python

πŸ‘€AWSComing

Leave a comment