1

I have been trying to install matplotlib in a virtual environment using pip.

after working on the virtual environment I tried:

$pip install matplotlib

but I get the error:

unable to execute 'c++' : No such file or directory
error : command 'c++' failed with exit status 1
------------------------------------------
Cleaning up

I am on ubuntu 14.04 and matplotlib works well for me when not using virtualenv, but I would like to have it in a virtualenv for separate projects that I have.

any suggestions?

2
  • Did you try to install gcc with apt-get? Commented Sep 9, 2017 at 7:23
  • yes thats why I have it working in my global site-packages, I just can not get it to install in virtualenv Commented Sep 9, 2017 at 7:25

1 Answer 1

1

Solved this problem by just upgrading pip, it seems there was an issue of version 1.5.4 which was installed when creating virtualenv.

$ pip install --upgrade pip 

then installed matplotlib using pip

$pip install matplotlib
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.