mac install Python and Jupyter notebook
python installation (anaconda)
Mac comes with Python2 version of Python, it's usually 3, Anaconda is a python version, anaconda2 corresponds to Python2 version, anaconda3.6 for python3 version, just download HTTPS on the website ://www.continuum.io/downloads/the appropriate version.
After downloading can be installed by default, direct installation complete.
After the installation is complete, do the following and activate it. After that, install the Python library with Conda install XXX, and the PIP install XXX Library is in the default Python2 environment.
Conda-h
# Create an environment with a name of PYTHON36 based on python3.6 version Conda create--name python3 python=3.6
# Activate this environment
activate Python3
Source Activate Python3 # linux/mac
# Then check the Python version, which shows 3.6
python-v
# exit the current environment
Jupyter Notebook
Jupyter Notebook is a good one that can run the code, write the document interactive notebook, very convenient. The installation method is:
In the terminal input Conda install jupyter can be.
The way to open Jupyter notebook is:
In the terminal input Jupyter notebook, will jump to the browser.