python
It's on the mac.
$ python --version
Python 2.7.6
pip
Install pip.
$ curl -kL https://raw.github.com/pypa/pip/master/contrib/get-pip.py | sudo python
Collecting pip
Downloading pip-6.0.8-py2.py3-none-any.whl (1.3MB)
100% |################################| 1.3MB 330kB/s
Installing collected packages: pip
Successfully installed pip-6.0.8
virtualenvwrapper
In order to pack the development environment, we will use virtualenvwrapper.
$ sudo pip install virtualenv virtualenvwrapper
Running setup.py install for virtualenv-clone
Installing virtualenv-clone script to /usr/local/bin
Successfully installed argparse-1.3.0 pbr-0.10.7 six-1.9.0 stevedore-1.2.0 virtualenv-12.0.7 virtualenv-clone-0.2.5 virtualenvwrapper-4.3.2
Write to set environment variables and hit the shell of virtualenvwapper when starting the shell.
.bashrc
if [ -f /usr/local/bin/virtualenvwrapper.sh ]; then
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
fi
Immediately reflect it.
$ . ~/.bashrc
Let's make one workshop.
$ mkvirtualenv work
New python executable in work/bin/python
Installing setuptools, pip...done.
Exit the environment, enter.
$ deactivate
$ workon work
ipython
Install ipython and everything else and launch notebook. I'm wondering if it's emacs + ipython or notebook, but now I can start notebook as well.
$ pip install ipython
Successfully installed gnureadline-6.3.3 ipython-2.4.0
$ pip install pyzmq
Successfully installed pyzmq-14.5.0
$ pip install jinja2
Successfully installed jinja2-2.7.3 markupsafe-0.23
$ pip install tornado
Successfully installed backports.ssl-match-hostname-3.4.0.2 certifi-14.5.14 tornado-4.0.2
$ ipthon notebook
Recommended Posts