p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff }
p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #afad24; background-color: #ffffff }
span.s1 { color: #d53bd3 }
span.s2 { color: #33bbc8 }
span.s3 { color: #afad24 }
span.s4 { color: #c33720 }
span.s5 { }
p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff }
p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #afad24; background-color: #ffffff }
span.s1 { color: #d53bd3 }
span.s2 { color: #33bbc8 }
span.s3 { color: #afad24 }
span.s4 { color: #c33720 }
span.s5 { }
安装homebrew
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ echo ‘export PATH="/usr/local/bin:$PATH"‘ >> ~/.bash_profile
$ brew doctor
安装matplotlib
lapomme@lapommedeMacBook-Pro:~|? sudo pip3 install matplotlib
The directory ‘/Users/lapomme/Library/Caches/pip/http‘ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo‘s -H flag.
The directory ‘/Users/lapomme/Library/Caches/pip‘ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo‘s -H flag.
Collecting matplotlib
Downloading matplotlib-1.5.3-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (11.2MB)
100% |████████████████████████████████| 11.2MB 42kB/s
Collecting pyparsing!=2.0.0,!=2.0.4,!=2.1.2,>=1.5.6 (from matplotlib)
Downloading pyparsing-2.1.10-py2.py3-none-any.whl (56kB)
100% |████████████████████████████████| 57kB 280kB/s
Collecting python-dateutil (from matplotlib)
Downloading python_dateutil-2.6.0-py2.py3-none-any.whl (194kB)
100% |████████████████████████████████| 196kB 297kB/s
Collecting cycler (from matplotlib)
Downloading cycler-0.10.0-py2.py3-none-any.whl
Collecting pytz (from matplotlib)
Downloading pytz-2016.7-py2.py3-none-any.whl (480kB)
100% |████████████████████████████████| 483kB 506kB/s
Collecting numpy>=1.6 (from matplotlib)
Downloading numpy-1.11.2-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (3.9MB)
100% |████████████████████████████████| 3.9MB 106kB/s
Collecting six>=1.5 (from python-dateutil->matplotlib)
Downloading six-1.10.0-py2.py3-none-any.whl
Installing collected packages: pyparsing, six, python-dateutil, cycler, pytz, numpy, matplotlib
Successfully installed cycler-0.10.0 matplotlib-1.5.3 numpy-1.11.2 pyparsing-2.1.10 python-dateutil-2.6.0 pytz-2016.7 six-1.10.0
You are using pip version 7.1.2, however version 9.0.1 is available.
You should consider upgrading via the ‘pip install --upgrade pip‘ command.
安装scipy
p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff }
p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #afad24; background-color: #ffffff }
span.s1 { color: #d53bd3 }
span.s2 { color: #33bbc8 }
span.s3 { color: #afad24 }
span.s4 { color: #c33720 }
span.s5 { }
lapomme@lapommedeMacBook-Pro:~|? pip3 install scipy
Collecting scipy
Downloading scipy-0.18.1-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (21.0MB)
100% |████████████████████████████████| 21.0MB 24kB/s
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.7.1 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (from scipy)
Installing collected packages: scipy
Successfully installed scipy-0.18.1
You are using pip version 7.1.2, however version 9.0.1 is available.
You should consider upgrading via the ‘pip install --upgrade pip‘ command.
安装numpy
p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff }
p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #afad24; background-color: #ffffff }
span.s1 { color: #d53bd3 }
span.s2 { color: #33bbc8 }
span.s3 { color: #afad24 }
span.s4 { color: #c33720 }
span.s5 { }
lapomme@lapommedeMacBook-Pro:~|? pip3 install numpy
Requirement already satisfied (use --upgrade to upgrade): numpy in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages
You are using pip version 7.1.2, however version 9.0.1 is available.
You should consider upgrading via the ‘pip install --upgrade pip‘ command.