首页 > 解决方案 > vcpkg 安装 matplotlib-cpp

问题描述

我想matplotlib-cpp在我的 c++ 代码中使用该功能。我安装vcpkg在我的 Windows 10 机器上,但是在尝试install matplotlib-cpp. 有任何想法吗?

$ ./vcpkg install matplotlib-cpp
Computing installation plan...
The following packages will be built and installed:
    matplotlib-cpp[core]:x86-windows -> 2020-08-27
Could not locate a complete toolset.
The following paths were examined:

username@DESKTOP-UB67JME MINGW64 /c/vcpkg (master)

** 更新 ** 从 PowerShell 运行并得到以下错误。很可能是同一个问题。

PS C:\vcpkg> .\vcpkg install matplotib-cpp Computing install plan... Error: while loading matplotib-cpp: The port directory (C:\vcpkg\ports\matplotib-cpp) does not exist Error: failed to load port from C:\vcpkg\ports\matplotib-cpp 注意:通过重新运行 bootstrap-vcpkg 来更新 vcpkg 可能会解决此故障。

标签: c++matplotlibvcpkg

解决方案


推荐阅读