I want to install matplotlib to virtualenv using pip. (pip 7.1.0, python 3.4)
$ virtualenv venv
$ source venv/bin/activate
$ pip install matplotlib
...
REQUIRED DEPENDENCIES AND EXTENSIONS
numpy: yes [version 1.9.2]
six: yes [using six version 1.9.0]
dateutil: yes [using dateutil version 2.4.2]
pytz: yes [using pytz version 2015.4]
tornado: yes [using tornado version 4.2.1]
pyparsing: yes [using pyparsing version 2.0.3]
pycxx: yes [Official versions of PyCXX are not compatible
with matplotlib on Python 3.x, since they lack
support for the buffer object. Using local copy]
libagg: yes [pkg-config information for 'libagg' could not
be found. Using local copy.]
I managed to install most of the dependencies, but pycxx
and libaag
fails with similar error:
Collecting pycxx
Could not find a version that satisfies the requirement pycxx (from versions: )
No matching distribution found for pycxx
My question is: What did I do wrong? Is there some workaround?
I could (maybe) install matplotlib using distro package manager and then import it somehow to virtualenv - that's where I would need a help.
Have you got numpy and scipy installed already in the venv ? I had some installation issues for numpy, scipy and matplotlib and upgrading pip and setuptools within the enviroment fixed everything:
$ pip install -U pip
$ pip install -U setuptools
If you install matplotlib using a package manageer you can just do the following when setting up your venv:
$ virtualenv --system-site-packages myvenv
And that should get matplotlib in to myvenv
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.