英文:
error: in triplet x64-windows: Unable to find a valid Visual Studio instance Could not locate a complete Visual Studio instance
问题
I am trying to start coding so I started watching the Cs50 course.
现在我正在尝试编写代码,所以我开始观看Cs50课程。
Now i am trying to use VsCode as my program editor because I know it's pretty good and it is the same editor they use in the Cs50 lecture, but when i try to include libraries like stdio or cs50 it spits out "#include-Fehler erkannt. Aktualisieren Sie Ihren includePath. Wellenlinien sind für diese Übersetzungseinheit".
现在我尝试使用VsCode作为我的程序编辑器,因为我知道它相当不错,而且它是Cs50讲座中使用的相同编辑器,但当我尝试包含像stdio或cs50这样的库时,它会显示错误消息 "#include-Fehler erkannt. Aktualisieren Sie Ihren includePath. Wellenlinien sind für diese Übersetzungseinheit"。
I've tried a couple of things and now installed Vcpkg. While trying to install cs50 by typing ".\vcpkg install cs50" into my PowerShell Window i got the error message "error: while looking for cs50:x86-windows: error: while loading cs50: The port directory (C:\Users\felix\DEV\vcpkg\ports\cs50) does not exist" so i tried to install something else first to make sure it works.
我尝试了一些方法,现在安装了Vcpkg。尝试通过在我的PowerShell窗口中键入".\vcpkg install cs50"来安装cs50时,我收到错误消息 "error: while looking for cs50:x86-windows: error: while loading cs50: The port directory (C:\Users\felix\DEV\vcpkg\ports\cs50) does not exist",所以我先尝试安装其他东西以确保它能正常工作。
I copied what the guy in my Youtube Video typed in to install sqlite3 but now i get the error message "error: in triplet x64-windows: Unable to find a valid Visual Studio instance Could not locate a complete Visual Studio instance The following paths were examined for Visual Studio instances: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary/Build\vcvarsall.bat".
我复制了我YouTube视频中的那个人键入的内容来安装sqlite3,但现在我收到错误消息 "error: in triplet x64-windows: Unable to find a valid Visual Studio instance Could not locate a complete Visual Studio instance The following paths were examined for Visual Studio instances: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary/Build\vcvarsall.bat"。
I added english as a supported language in Visual Stuio Installer but it didn't help and all the other solution people talked about were not comprehendable for me.
我在Visual Studio Installer中添加了英语作为支持的语言,但没有帮助,而其他人讨论的解决方案对我来说不可理解。
I hope someone can help me and if you can please try to explain it in simple terms as i am failry new to this whole thing.
我希望有人能帮助我,如果可能的话,请尽量以简单的术语解释,因为我对这一切都还比较新。
英文:
I am trying to start coding so I started watching the Cs50 course.
Now i am trying to use VsCode as my program editor because I know it's pretty good and it is the same editor they use in the Cs50 lecture, but when i try to include libraries like stdio or cs50 it spits out "#include-Fehler erkannt. Aktualisieren Sie Ihren includePath. Wellenlinien sind für diese Übersetzungseinheit". I've tried a couple of things and now installed Vcpkg. While trying to install cs50 by typing ".\vcpkg install cs50" into my PowerShell Window i got the error message "error: while looking for cs50:x86-windows:
error: while loading cs50:
The port directory (C:\Users\felix\DEV\vcpkg\ports\cs50) does not exist" so i tried to install something else first to make sure it works.
I copied what the guy in my Youtube Video typed in to install sqlite3 but now i get the error message "error: in triplet x64-windows: Unable to find a valid Visual Studio instance
Could not locate a complete Visual Studio instance
The following paths were examined for Visual Studio instances:
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary/Build\vcvarsall.bat".
I added english as a supported language in Visual Stuio Installer but it didn't help and all the other solution people talked about were not comprehendable for me.
I hope someone can help me and if you can please try to explain it in simple terms as i am failry new to this whole thing.
Sorry for my bad english and thank you all in advance
答案1
得分: 2
选择并安装“Visual C++ tools for CMake”在Visual Studio Installer中。
https://github.com/microsoft/vcpkg/issues/22074
英文:
select and install "Visual C++ tools for CMake" in the Visual Studio Installer
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论