# Failed to Install ROOT, pyROOT, matplotlib in Python3 in Mac OS

**URL:** <https://root-forum.cern.ch/t/failed-to-install-root-pyroot-matplotlib-in-python3-in-mac-os/30515>\
**Category:** ROOT\
**Created:** [September 2, 2018, 2:03am UTC](https://root-forum.cern.ch/t/failed-to-install-root-pyroot-matplotlib-in-python3-in-mac-os/30515 "2018-09-02T02:03:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gratain](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/g/c0e974/32.png) [@gratain](https://root-forum.cern.ch/u/gratain)\
**Post date:** [September 2, 2018, 2:03am UTC](https://root-forum.cern.ch/t/failed-to-install-root-pyroot-matplotlib-in-python3-in-mac-os/30515/1 "2018-09-02T02:03:02Z")

</div>

* * *

\_ROOT Version:6.12.04  
\_Platform:MacOS Sierra 10.12.6  
\_Compiler:gcc 4.2.1

* * *

My goal is to upgrade my python from python 2.7 to python 3.x. For the purpose of data analysis, I want the following to work in python 3:  
ROOT, pyROOT, root\_numpy, and matplotlib  
Though matplotlib is not part of ROOT, but it is essential for anyone who would like to do analysis with pyROOT.  
And one important issue: my work computer doesn’t not give me sudo access. So I have to install everything in local path. And I prefer installing them via some package controls. I have tried homebrew, pyenv, anaconda, and all of them will make one of above not working:

1. For homebrew, it cannot install earlier version of python. The default one is python 3.7, and the earliest one I can find by `brew log python` is 3.6.x. However, root\_numpy has only been tested up to 3.5.
2. For `pyenv`, `matplotlib` cannot run by the standard `pyenv install 3.5.0` installation. One must do “enable-framework” so that matplotlib will work. However, by doing so, it requires sudo access to `/Applications`, which I don’t have. This path is hard-coded into the configure file, not trivial to change it. The issue can be found here: [https://github.com/pyenv/pyenv/issues/1003](https://github.com/pyenv/pyenv/issues/1003)
3. For `anaconda`, I have tried, and the problem is here: [PyROOT with Anaconda Python 3.6 with ROOT 6.12.04](https://root-forum.cern.ch/t/pyroot-with-anaconda-python-3-6-with-root-6-12-04/30335) In short, there is no apparent answer on how to install pyROOT against python by Anaconda.

The only path forward I can see is to install python 3.5 directly from python website without package control software, which doesn’t seem like a great practice to me. Is there anything else that I can do?

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [September 16, 2018, 2:03am UTC](https://root-forum.cern.ch/t/failed-to-install-root-pyroot-matplotlib-in-python3-in-mac-os/30515/2 "2018-09-16T02:03:04Z")

</div>

Closed on September 16, 2018, 2:03am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
