sudo yum install mysql mysql-devel mysql-libs sudo yum install python-develsudo yum install MySQL-python How come this command cannot find the Python.h header file?

sudo pip install mysql-pythonBefore, I upgraded python from 2.6 to 2.7. find / -name Python.h 2>/dev/null returns /usr/include/python2.6/Python.h, which python returns /usr/bin/python, and which gcc returns /usr/bin/gcc.

You are watching: Python.h: no such file or directory


*

AHA!

It was because I"d installed python2.7 alongside the system python2.6 (following this great page). I had to be careful that I referenced the right python (see this) and from this I discovered my problem: python27-devel instead of python-devel was needed. Ah, ignorance.

Here"s the final thing I ran.

sudo yum install mysql mysql-devel mysql-libs sudo yum install python27-develsudo yum install MySQL-python sudo pip install mysql-python

*

*

Thanks for contributing an answer to Super User!

Please be sure to answer the question. Provide details and share your research!

But avoid

Asking for help, clarification, or responding to other answers.Making statements based on opinion; back them up with references or personal experience.

See more: How To Hack Arcade Games For Tickets For Free!, How To Hack The Tower Of Tickets Arcade Game!

To learn more, see our tips on writing great answers.


Post Your Answer Discard

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy


Not the answer you're looking for? Browse other questions tagged installation centos python mysql gcc or ask your own question.


python 2.6 or 2.7 (scientific packags support) and mint linux which packages to install (-dev, etc.)
*

site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev2021.9.23.40291


Super User works best with JavaScript enabled
*

Your privacy

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.