python on mac

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

python on mac
Install Python on Mac
Install Python 3 on Mac
Install Python 3.4 on Mac
Install pygame on python3.4 on mac
Handling of python on mac
Update python on Mac to 3.7-> 3.8
Install pandas 0.14 on python3.4 [on Mac]
Notes on installing Python on Mac
Building a Python environment on Mac
If python on mac goes missing
Python on Windows
twitter on python3
Python environment construction memo on Mac
Install Python 3.7 Anaconda on MAC, but Python 2
Install python3 on Mac (El Capitan)
Environment construction of python3.8 on mac
If Python 3.5.0 installation fails on Mac
Python on Windbg
Steps to install python3 on mac
Call C / C ++ from Python on Mac
Update Python on Mac from 2 to 3
Introducing MAMP + Python + SQLAlchemy (Mysql-Python) on Mac
Create a python environment on your Mac
Follow active applications on Mac with Python
How to erase Python 2.x on Mac.
Notes on building Python and pyenv on Mac
Build Python environment with Anaconda on Mac
Video processing using Python + OpenCV on Mac
Install Tensorflow on Mac
Install python on WSL
PyOpenGL setup on Python 3
Install Python on Pidora.
Pyenv + virtualenv on Mac
Install Ansible on Mac
Install Python3.4 on CentOS 6.6
numba installation on mac
Installing pandas on python2.6
Install python on windows
Install Python 2.7.3 on CentOS 5.4
Run OpenMVG on Mac
build Python on Ubuntu
Install Python 3.3 on Ubuntu 12.04
Install Caffe on Mac
Install mecab on mac
Mac environment construction Python
Install mecab-python on Mac
Try deepdream on Mac
Install Python 3.6 on Docker
Build a Python environment on Mac (Mountain Lion)
Run Zookeeper x python (kazoo) on Mac OS X
Build a Python development environment on your Mac
Try working with Mongo in Python on Mac
Put Python 2.7.x on Mac OSX 10.15.5 with pyenv
Shpinx (Python documentation builder) on Mac OS X
Try importing MLB data on Mac and Python
Run Openpose on Python (Windows)
Install Python 3.8 on RHEL 8 (AppStream)
Use matplotlib on Ubuntu 12 & Python
Install watchdog on Windows + Python 3.3
Install Python venv --VSCode --GitHub integration environment on Mac