注意:php
1) 安裝以前,最好把 /usr/bin/python 指向 python3,安裝完再調回去。之後主要使用 python3.python
2) 安裝以前,最好先安裝 boost.git
---------------------------------------------------------------------------------------------------------------------------------github
Prerequisites:web
$ sudo apt-get install python-dev (or python3-dev)ui
$ sudo apt-get install cmakespa
$ sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ pytestip
$ sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ numpyci
$ sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ scipyget
$ sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ pybind11
Get pybind11, from website: https://github.com/pybind/pybind11 to get the source package.
Get Eigen, from website: http://eigen.tuxfamily.org/index.php?title=Main_Page to get the source package.
for the above two source package, uncompoze it, and,
$ cd that_folder
$ mkdir build
$ cd build
$ cmake ..
$ make check -j 4 (make and check, not necessary)
$ sudo make install (maybe should disable python3 in /usr/bin/ if you use python2)
That's all :)