.\vcpkg : The term '.\vcpkg' is not recognized as the name of a cmdlet, function, script file, or operable program. Che ck the spelling of the name, or if a path was included, verify that the path is correct and try again.
时间: 2024-03-19 09:43:27 浏览: 249
the string was not recognized as a valid Datetime.
5星 · 资源好评率100%
如果在命令行窗口中输入“.\vcpkg”命令后,出现“.\vcpkg : The term '.\vcpkg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.”的提示,则说明vcpkg的路径没有被正确识别。
要解决这个问题,可以按照以下步骤进行:
1. 打开vcpkg的安装目录,通常是在用户目录下的vcpkg文件夹中。
2. 复制vcpkg文件夹的路径,例如:C:\Users\Username\vcpkg。
3. 在命令行窗口中输入以下命令:
```
cd C:\Users\Username\vcpkg
```
将上面的路径改为你自己的vcpkg的路径。
4. 然后输入以下命令:
```
.\vcpkg integrate install
```
现在,vcpkg应该已经添加到环境变量中了,并且可以在命令行窗口中使用vcpkg命令了。
阅读全文