![](/img/trans.png)
[英]Python, Windows: The term 'conda' is not recognized as the name of a cmdlet
[英]The term 'cmake' is not recognized as the name of a cmdlet
我正在嘗試在 Windows 10 的命令行中使用 CMake。這以前可以工作,但我不知道為什么它不再工作了。 我安裝了新版本的 CMake 並添加了環境變量的路徑。 但是,當嘗試在 Powershell 中像這樣使用它時: cmake -G "Visual Studio 14 2015 Win64" ..
它顯示此錯誤:
cmake :術語“cmake”不被識別為 cmdlet、函數、腳本文件或可運行程序的名稱。 檢查名稱的拼寫,或者如果包含路徑,請驗證路徑是否正確,然后重試。 在行:1 字符:1
這是我的環境變量:
我已將C:\\Program Files\\CMake\\bin
到path
變量的末尾。 我也試過卸載並重新安裝 CMake,但沒有幫助。
在當前的 powershell 會話中,您必須將路徑添加到路徑環境變量中。 你必須使用這個:
$env:path += ";C:\Program Files\cmake\bin"
cmake -g ...
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.