Unable to install matplotlib on OS X with PIP

This is my first matplotlib setup.
I am in OS X Lion 10.7 (build 11A511s, so no updates for the initial release of OS X Lion).
I use virtualenv and pip to install.
I know about incompatibility with libpng 1.5, so I didn’t just run "pip install matplotlib" ... instead ...
I tried running this from inside virtualenv:

pip install -e git+https://github.com/matplotlib/matplotlib#egg=matplotlib-dev

It looks like it starts the installation, but then I get this error:

 /Users/myusername/.virtualenvs/nltk/lib/python2.7/site-packages/numpy/core/include/numpy/ __multiarray_api.h:1532: warning: 'int _import_array()' defined but not used lipo: can't open input file: /var/folders/wy/s1jr354d4xx7dk0lpdpbpsbc0000gn/T/ /ccfNUhyq.out (No such file or directory) error: command 'llvm-gcc-4.2' failed with exit status 1 ---------------------------------------- Command /Users/sameerfx/.virtualenvs/nltk/bin/python -c "import setuptools; __file__= '/Users/sameerfx/.virtualenvs/nltk/src/matplotlib/setup.py'; exec(compile(open(__file__ ).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps failed with error code 1 Storing complete log in /Users/sameerfx/.pip/pip.log 
+4
source share
2 answers

Three years later:

You should use anaconda to install matplotlib (or numpy or pandas or scipy) if you are new to this process. This offer extends to almost any platform.

0
source

Hmmm ... if you don't want to use pip and virtualenv to install, try the following:

 git clone git://github.com/matplotlib/matplotlib.git 

And create and install, as usual, with

 cd matplotlib python setup.py install 

See this for help installing matplotlib .

0
source

Source: https://habr.com/ru/post/1381064/


All Articles