@@ -140,15 +140,15 @@ or ::
140140Macports Python
141141^^^^^^^^^^^^^^^
142142
143- For Python 2.7 ::
143+ For Python 2::
144144
145145 sudo port install py27-pip
146- sudo python2.7 -mpip install matplotlib
146+ sudo python2 -mpip install matplotlib
147147
148- For Python 3.4 ::
148+ For Python 3::
149149
150- sudo port install py34 -pip
151- sudo python3.4 -mpip install matplotlib
150+ sudo port install py36 -pip
151+ sudo python3.6 -mpip install matplotlib
152152
153153Homebrew Python
154154^^^^^^^^^^^^^^^
@@ -180,17 +180,17 @@ Checking your installation
180180The new version of Matplotlib should now be on your Python "path". Check this
181181with one of these commands at the Terminal.app command line::
182182
183- python2.7 -c 'import matplotlib; print matplotlib.__version__, matplotlib.__file__'
183+ python2 -c 'import matplotlib; print matplotlib.__version__, matplotlib.__file__'
184184
185185(Python 2) or::
186186
187- python3.4 -c 'import matplotlib; print(matplotlib.__version__, matplotlib.__file__)'
187+ python3 -c 'import matplotlib; print(matplotlib.__version__, matplotlib.__file__)'
188188
189- (Python 3.4 ). You should see something like this::
189+ (Python 3). You should see something like this::
190190
191- 1.4. 0 /Library/Frameworks/Python.framework/Versions/2.7 /lib/python2.7 /site-packages/matplotlib/__init__.pyc
191+ 2.1. 0 /Library/Frameworks/Python.framework/Versions/3.6 /lib/python3.6 /site-packages/matplotlib/__init__.pyc
192192
193- where ``1.4 .0 `` is the Matplotlib version you just installed, and the path
193+ where ``2.1 .0 `` is the Matplotlib version you just installed, and the path
194194following depends on whether you are using Python.org Python, Homebrew or
195195Macports. If you see another version, or you get an error like this::
196196
@@ -201,11 +201,11 @@ Macports. If you see another version, or you get an error like this::
201201then check that the Python binary is the one you expected by doing one of
202202these commands in Terminal.app::
203203
204- which python2.7
204+ which python2
205205
206206or::
207207
208- which python3.4
208+ which python3
209209
210210If you get the result ``/usr/bin/python2.7 ``, then you are getting the Python
211211installed with OSX, which is probably not what you want. Try closing and
0 commit comments