执行以下命令

  1. apt-get install python-pip
  2. apt-get install ipython
  3. apt-get install ipython-notebook
  4. sudo apt-get install python-numpy
  5. sudo apt-get install python-scipy
  6. 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