关于matplotlib:matplotlibcpp的安装使用

2次阅读

共计 305 个字符,预计需要花费 1 分钟才能阅读完成。

  1. 应用 miniconda 创立虚拟环境
    conda create -n cppmatplot python=3.8
  2. 下载源码
    https://github.com/lava/matplotlib-cpp.git
  3. 编译
    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
  4. 应用
    https://github.com/jamefrank/cppmatplotlib.git
正文完
 0