首页 > 解决方案 > vcpkg 在 VS 代码中安装

问题描述

我是一名正在学习 C++ 的 Python 开发人员。我有个问题:

我想安装一个外部库libxlsxwriter。在 VS Code 终端中,我执行以下操作:

a) 我创建并清空文件夹 C:\dev。我在那里安装 vcpkg 使用:

 `cd C:\dev`

 `git clone https://github.com/Microsoft/vcpkg.git`

 `.\vcpkg\bootstrap-vcpkg.bat`

b)现在当我尝试下载库时,我收到了这条消息:

`.\vcpkg install libxlsxwriter:x64-windows`

Computing installation plan...

The following packages will be built and installed:

libxlsxwriter[core]:x64-windows -> 0.9.4

zlib[core]:x64-windows -> 1.2.11#10

Additional packages (*) will be modified to complete this operation.

**No suitable Visual Studio instances were found**

你能解释一下,问题出在哪里吗?我的 VS Code 设置有问题吗?非常感谢。

标签: visual-studio-codevcpkg

解决方案


推荐阅读