1.
pip install virtualenv virtualenv testvir cd testvir cd Scripts activate pip install django==1.9.8
https://zhuanlan.zhihu.com/p/32286726
2.ipython
198 python 199 sudo pip install ipython 200 brew install python 201 python 202 which python 203 sudo pip install ipython 204 ipython 205 ipythonwhich ipython 206 which ipython 207 sudo pip install ipython 208 brew install ipython 209 ipython 210 brew tap homebrew/versions 211 brew search ipython@ 212 brew uninstall ipython 214 brew install ipython@5 215 ipython 216 ls /usr/local/Cellar/ipython@5/5.5.0_2/bin/ipython 217 /usr/local/Cellar/ipython@5/5.5.0_2/bin/ipython
于是尝试用easy_install 安装, sudo easy_install matplotlib
In [1]: %pylab Using matplotlib backend: MacOSX Populating the interactive namespace from numpy and matplotlib In [2]: a = linspace(0, 2*pi, 21) In [3]: b = sin(a) In [4]: %matplotlib osx In [5]: mask = b >= 0 In [7]: plot(a[mask], b[mask], 'ro')
http://blog.csdn.net/iloveyin/article/details/51074388
https://www.jianshu.com/p/93acc1da95a7
https://stackoverflow.com/questions/3987683/homebrew-install-specific-version-of-formula
http://nbviewer.jupyter.org/github/lijin-THU/notes-python/blob/master/01-python-tools/01.02-ipython-interpreter.ipynb