Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3ae1336

Browse files
committed
DOC: tweak OSX install faq
Mostly moving away from python3.4 in the examples.
1 parent 87960f8 commit 3ae1336

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

doc/faq/installing_faq.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,15 @@ or ::
140140
Macports 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

153153
Homebrew Python
154154
^^^^^^^^^^^^^^^
@@ -180,17 +180,17 @@ Checking your installation
180180
The new version of Matplotlib should now be on your Python "path". Check this
181181
with 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
194194
following depends on whether you are using Python.org Python, Homebrew or
195195
Macports. 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::
201201
then check that the Python binary is the one you expected by doing one of
202202
these commands in Terminal.app::
203203

204-
which python2.7
204+
which python2
205205

206206
or::
207207

208-
which python3.4
208+
which python3
209209

210210
If you get the result ``/usr/bin/python2.7``, then you are getting the Python
211211
installed with OSX, which is probably not what you want. Try closing and

0 commit comments

Comments
 (0)