matplotlib-cpp的安装使用
文章目录
- 使用miniconda 创建虚拟环境
conda create -n cppmatplot python=3.8 - 下载源码
https://github.com/lava/matplotlib-cpp.git - 编译
cd matplotlib-cpp
mkdir build
vim ../CMakelist.txt
添加如下代码
set(Python3_FIND_STRATEGY LOCATION)
set(Python3_ROOT_DIR "*/miniconda3/envs/cppmatplot")
make -j32
sudo make install - 使用
https://github.com/jamefrank/cppmatplotlib.git
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论