pybind11 安装
注意:
1) 安装之前,最好把 /usr/bin/python 指向 python3,安装完再调回去。以后主要使用 python3.
2) 安装之前,最好先安装 boost.
---------------------------------------------------------------------------------------------------------------------------------
Prerequisites:
$ sudo apt-get install python-dev (or python3-dev)
$ sudo apt-get install cmake
$ sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ pytest
$ sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ numpy
$ sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ scipy
$ 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 :)
推荐阅读
-
在 Anaconda 虚拟环境中安装 cuda 和 pytorch
-
设计并实施基于 SpringBoot 的 DIY 计算机安装教程网站。
-
在 Ubuntu 下安装和初始化 Git,同时添加 SSH 密钥
-
Linux 安装和部署服务:nginx和Openresty - IV,nginx常用配置
-
node.js 下载和安装以及环境配置超级详细教程 [Windows 版本]。
-
[PyTorch] 轻松安装 PyTorch:兼容性问题解析
-
在 Linux 中安装 mongodb,非常详细 - 四步、启动和关闭
-
群晖在前面添加了雷池社区版,安装失败后,就无法识别用户的真实访问 IP。
-
在 Nginx 安装中添加 nginx-module-vts 模块。
-
JavaWeb - Maven (2/8):概述 - 介绍与安装(步骤、具体操作、测试)