1

I try to install matplotlib,

sudo python2.7 setup.py install

after I got error like:

SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel

How to solve this problem? Help me.

2

1 Answer 1

0

Try installing python-dev dependency before your stuff.

sudo apt-get install python-dev
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.