@@ -223,10 +223,42 @@ binaries in the form of wheels.
223223Python.org Python
224224^^^^^^^^^^^^^^^^^
225225
226- * Install pip following instructions here: http://pip.readthedocs.org
226+ First check that you do in fact have the Python.org python set to be the
227+ default Python binary. From Terminal, do::
228+
229+ python -c 'import sys; print(sys.prefix)'
230+
231+ or::
232+
233+ python3 -c 'import sys; print(sys.prefix)'
234+
235+ Use ``python `` or ``python3 `` depending whether you installed Python 2.7 or a
236+ Python 3 release. You should see something like::
237+
238+ /Library/Frameworks/Python.framework/Versions/2.7
239+
240+ where "2.7" is your installed Python version. If you see something like
241+ ``/usr/bin/python `` instead, first try restarting Terminal.app;, if that
242+ doesn't work then try reinstalling Python.org Python. If the check still
243+ fails, we would like to hear about it. Please have a look at
244+ :ref: `reporting-problems `.
245+
246+ Install pip following the `standard pip install instructions
247+ <http://pip.readthedocs.org/en/latest/installing.html> `_. For the impatient,
248+ in Terminal::
249+
250+ curl -O https://bootstrap.pypa.io/get-pip.py
227251
228252Then::
229253
254+ python get-pip.py
255+
256+ or::
257+
258+ python3 get-pip.py
259+
260+ Install matplotlib and all its dependencies with::
261+
230262 pip install matplotlib
231263
232264Macports
@@ -262,6 +294,14 @@ the IPython notebook option, like this:
262294* Homebrew ``pip2 install ipython[notebook] `` or ``pip3 install
263295 ipython[notebook] ``
264296
297+ In case of emergency...
298+ ^^^^^^^^^^^^^^^^^^^^^^^
299+
300+ If you get errors with pip trying to run a compiler like ``gcc `` or ``clang ``,
301+ first check :ref: `reporting-problems `, then you may need to `install xcode
302+ <https://guide.macports.org/chunked/installing.html#installing.xcode> `_ and
303+ try again.
304+
265305Installing via OSX mpkg installer package
266306-----------------------------------------
267307
@@ -339,8 +379,8 @@ restarting Terminal.app before running the check again. If that doesn't fix
339379the problem, depending on which Python you wanted to use, consider
340380reinstalling Python.org Python, or check your homebrew or macports setup.
341381Remember that the disk image installer only works for Python.org Python, and
342- will not get picked up by other Pythons. If all these fail, please contact
343- the mailing list .
382+ will not get picked up by other Pythons. If all these fail, please let us
383+ know: see :ref: ` reporting-problems ` .
344384
345385Windows Notes
346386=============
0 commit comments