关于matplotlib:matplotlibcpp的安装使用

  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

【腾讯云】轻量 2核2G4M,首年65元

阿里云限时活动-云数据库 RDS MySQL  1核2G配置 1.88/月 速抢

本文由乐趣区整理发布,转载请注明出处,谢谢。

您可能还喜欢...

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据