@@ -140,15 +140,15 @@ or ::
140
140
Macports Python
141
141
^^^^^^^^^^^^^^^
142
142
143
- For Python 2.7 ::
143
+ For Python 2::
144
144
145
145
sudo port install py27-pip
146
- sudo python2.7 -mpip install matplotlib
146
+ sudo python2 -mpip install matplotlib
147
147
148
- For Python 3.4 ::
148
+ For Python 3::
149
149
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
152
152
153
153
Homebrew Python
154
154
^^^^^^^^^^^^^^^
@@ -180,17 +180,17 @@ Checking your installation
180
180
The new version of Matplotlib should now be on your Python "path". Check this
181
181
with one of these commands at the Terminal.app command line::
182
182
183
- python2.7 -c 'import matplotlib; print matplotlib.__version__, matplotlib.__file__'
183
+ python2 -c 'import matplotlib; print matplotlib.__version__, matplotlib.__file__'
184
184
185
185
(Python 2) or::
186
186
187
- python3.4 -c 'import matplotlib; print(matplotlib.__version__, matplotlib.__file__)'
187
+ python3 -c 'import matplotlib; print(matplotlib.__version__, matplotlib.__file__)'
188
188
189
- (Python 3.4 ). You should see something like this::
189
+ (Python 3). You should see something like this::
190
190
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
192
192
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
194
194
following depends on whether you are using Python.org Python, Homebrew or
195
195
Macports. If you see another version, or you get an error like this::
196
196
@@ -201,11 +201,11 @@ Macports. If you see another version, or you get an error like this::
201
201
then check that the Python binary is the one you expected by doing one of
202
202
these commands in Terminal.app::
203
203
204
- which python2.7
204
+ which python2
205
205
206
206
or::
207
207
208
- which python3.4
208
+ which python3
209
209
210
210
If you get the result ``/usr/bin/python2.7 ``, then you are getting the Python
211
211
installed with OSX, which is probably not what you want. Try closing and
0 commit comments