osx - pip3 install matplotlib fails with Command "python setup.py egg_info" failed with error code 1 Mac OS X -


i new python, not programming or mac os x. have searched internet hours , i've tried every solution can find, including manually installing/uninstalling everything. exact same command works using pip, not pip3.

i can't remember half solutions i've tried, here's can remember: -installed numpy manually -installed anaconda -reinstall python/python3 -installed pkg-config manually -installed numpy manually

any , appreciated!

full terminal output:

rover-230-17:~ unwrittenrainbow$ pip3 install matplotlib collecting matplotlib using cached matplotlib-1.5.1.tar.gz complete output command python setup.py egg_info: ============================================================================ edit setup.cfg change build options  building matplotlib             matplotlib: yes [1.5.1]                 python: yes [3.5.1 (v3.5.1:37a07cee5969, dec  5 2015,                         20:58:59)  [gcc 4.2.1 (apple inc. build 5577)]]               platform: yes [darwin]  required dependencies , extensions                  numpy: yes [not found. pip may install below.]               dateutil: yes [dateutil not found. required date                         axis support. pip/easy_install may attempt                         install after matplotlib.]                   pytz: yes [pytz not found. pip attempt install                         after matplotlib.]                 cycler: yes [cycler not found. pip attempt                         install after matplotlib.]                tornado: yes [tornado not found. required                         webagg backend. pip/easy_install may attempt                         install after matplotlib.]              pyparsing: yes [pyparsing not found. required                         mathtext support. pip/easy_install may attempt                         install after matplotlib.]                 libagg: yes [pkg-config information 'libagg' not                         found. using local copy.]               freetype: yes [version 2.6.0]                    png: yes [version 1.6.20]                  qhull: yes [pkg-config information 'qhull' not                         found. using local copy.]  optional subpackages            sample_data: yes [installing]               toolkits: yes [installing]                  tests: yes [nose 0.11.1 or later required run                         matplotlib test suite. please install pip or                         preferred tool run test suite / using                         unittest.mock]         toolkits_tests: yes [nose 0.11.1 or later required run                         matplotlib test suite. please install pip or                         preferred tool run test suite / using                         unittest.mock]  optional backend extensions                 macosx: yes [installing, darwin]                 qt5agg: no  [pyqt5 not found]                 qt4agg: no  [pyside not found; pyqt4 not found]                gtk3agg: no  [requires pygobject installed.] download error on https://pypi.python.org/simple/numpy/: [ssl: certificate_verify_failed] certificate verify failed (_ssl.c:645) -- packages may not found! couldn't find index page 'numpy' (maybe misspelled?) download error on https://pypi.python.org/simple/: [ssl: certificate_verify_failed] certificate verify failed (_ssl.c:645) -- packages may not found! no local packages or download links found numpy>=1.6 traceback (most recent call last):   file "<string>", line 20, in <module>   file "/private/var/folders/2h/k8n0gw311f58vnd7jm3b8tmh0000gn/t/pip-build-xduaxugd/matplotlib/setup.py", line 277, in <module>     **extra_args   file "/library/frameworks/python.framework/versions/3.5/lib/python3.5/distutils/core.py", line 108, in setup     _setup_distribution = dist = klass(attrs)   file "/library/frameworks/python.framework/versions/3.5/lib/python3.5/site-packages/setuptools/dist.py", line 268, in __init__     self.fetch_build_eggs(attrs['setup_requires'])   file "/library/frameworks/python.framework/versions/3.5/lib/python3.5/site-packages/setuptools/dist.py", line 313, in fetch_build_eggs     replace_conflicting=true,   file "/library/frameworks/python.framework/versions/3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 836, in resolve     dist = best[req.key] = env.best_match(req, ws, installer)   file "/library/frameworks/python.framework/versions/3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1081, in best_match     return self.obtain(req, installer)   file "/library/frameworks/python.framework/versions/3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1093, in obtain     return installer(requirement)   file "/library/frameworks/python.framework/versions/3.5/lib/python3.5/site-packages/setuptools/dist.py", line 380, in fetch_build_egg     return cmd.easy_install(req)   file "/library/frameworks/python.framework/versions/3.5/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 623, in easy_install     raise distutilserror(msg) distutils.errors.distutilserror: not find suitable distribution requirement.parse('numpy>=1.6')              gtk3cairo: no  [requires cairocffi or pycairo installed.]                 gtkagg: no  [requires pygtk]                  tkagg: yes [installing, version not identified]                  wxagg: no  [requires wxpython]                    gtk: no  [requires pygtk]                    agg: yes [installing]                  cairo: no  [cairocffi or pycairo not found]              windowing: no  [microsoft windows only]  optional latex dependencies                 dvipng: no            ghostscript: no                  latex: no                pdftops: no  optional package data                   dlls: no  [skipping due configuration]   ----------------------------------------  command "python setup.py egg_info" failed error code 1 in           /private/var/folders/2h/k8n0gw311f58vnd7jm3b8tmh0000gn/t/pip-build-xduaxugd/matplotlib 

you need install depedencies yourself:

         gtk3cairo: no  [requires cairocffi or pycairo installed.]             gtkagg: no  [requires pygtk]              tkagg: yes [installing, version not identified]              wxagg: no  [requires wxpython]                gtk: no  [requires pygtk]                agg: yes [installing]              cairo: no  [cairocffi or pycairo not found]          windowing: no  [microsoft windows only] 

you can use pip install these, pip install pycairo pygtk wxpython


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -