【问题标题】:could not find "vswhere"找不到\"vswhere\"
【发布时间】:2022-11-11 18:00:29
【问题描述】:

我正在尝试安装 boost 以正确运行 PyGMO。但是,在我将它解压到一个目录中之后(没有使用 git)。

运行bootstrap vc142 之后(我使用的是VScode V1.63.2,并且我在Windows 上)。我收到此错误:

Building Boost.Build engine
LOCALAPPDATA=C:\Users\wojci\AppData\Local
could not find "vswhere"
Call_If_Exists "..\bin\VCVARS32.BAT"
###
### Using 'msvc' toolset.
###

其次是:

C:\Program Files\boost\boost_1_78_0\tools\build\src\engine>dir *.exe
 Volume in drive C has no label.
C:\Program Files\boost\boost_1_78_0\tools\build\src\engine>copy /b .\b2.exe .\bjam.exe
The system cannot find the file specified.

Failed to build Boost.Build engine.

有谁知道如何解决/解决这个问题?

先感谢您

【问题讨论】:

    标签: c++ windows visual-studio-code boost


    【解决方案1】:
    【解决方案2】:
    1. 在开始搜索中键入“native tools”。
    2. 以管理员身份运行“Visual Studio 的本机工具”。将打开一个命令提示符。
    3. 将目录更改为 boost 。
    4. 运行命令“引导程序”。
    5. 按“.2”跟进。 稍等片刻。

      为我工作。希望能帮助到你。

    【讨论】:

      猜你喜欢
      • 2022-01-04
      • 1970-01-01
      • 2019-07-23
      • 2021-06-19
      • 1970-01-01
      • 2020-01-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多