@@ -223,10 +223,42 @@ binaries in the form of wheels.
223
223
Python.org Python
224
224
^^^^^^^^^^^^^^^^^
225
225
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
227
251
228
252
Then::
229
253
254
+ python get-pip.py
255
+
256
+ or::
257
+
258
+ python3 get-pip.py
259
+
260
+ Install matplotlib and all its dependencies with::
261
+
230
262
pip install matplotlib
231
263
232
264
Macports
@@ -262,6 +294,14 @@ the IPython notebook option, like this:
262
294
* Homebrew ``pip2 install ipython[notebook] `` or ``pip3 install
263
295
ipython[notebook] ``
264
296
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
+
265
305
Installing via OSX mpkg installer package
266
306
-----------------------------------------
267
307
@@ -339,8 +379,8 @@ restarting Terminal.app before running the check again. If that doesn't fix
339
379
the problem, depending on which Python you wanted to use, consider
340
380
reinstalling Python.org Python, or check your homebrew or macports setup.
341
381
Remember 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 ` .
344
384
345
385
Windows Notes
346
386
=============
0 commit comments