首先是基础环境安装:
yum install zeromq-devel
yum install gcc-gfortran
yum install freetype-devel
yum install libpng-devel
yum install atlas-devel
yum install bzip2-devel
yum install tk-devel
yum install tcl-devel
# Use the system python or install python from source code or use virtualenv to manage your python environment
wget https://bootstrap.pypa.io/ez_setup.py -O - | python
easy_install pip
pip install numpy
pip install scipy
pip install scikit-learn
pip install 'ipython[notebook]'
pip install pandas
pip install matplotlib
[/code]
配置IPython:
```code
ipython profile create nbserver
cd .ipython/
openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mycert.pem -out mycert.pem
vim /root/.ipython/profile_nbserver/ipython_notebook_config.py
c.NotebookApp.ip = '*'
c.NotebookApp.port = 9