执行以下命令
- apt-get install python-pip
- apt-get install ipython
- apt-get install ipython-notebook
- sudo apt-get install python-numpy
- sudo apt-get install python-scipy
- sudo apt-get install python-matplotlib
可能有用的一些命令
- sudo pip install tornado
- sudo apt-get install libzmq-dev
- sudo pip install pyzmq
- sudo pip install pygments
- 如果需要通过pip编译安装,可以先用apt-get命令安装所有编译所需的库:
- sudo apt-get build-dep python-numpy
- sudo apt-get build-dep python-scipy
- 然后通过pip命令安装:
- sudo pip install numpy
- sudo pip install scipy