2016-11-04 96 views
2

在安裝過程中,我收到以下錯誤:錯誤安裝Microsoft CNTK

This script will setup the CNTK prequisites and the CNTK Python environment onto the machine. More help is given by calling 'get-help .\install.ps1' in your powershell environment.

The script will analyse your machine and will determine which components are required. The required components will be downloaded in [C:\local\Scripts\windows\InstallCache] Repeated operation of this script will reuse already downloaded components.

  • If required VS2012 Runtime and VS2013 Runtime will be installed
  • If required MSMPI will be installed
  • If required the standard Git tool will be installed
  • CNTK source will be cloned from Git into [c:\repos\CNTK]
  • Anaconda3 will be installed into [C:\local\Anaconda3-4.1.1-Windows-x86_64]
  • A CNTK-PY34 environment will be created in [C:\local\Anaconda3-4.1.1-Windows-x86_64\envs]
  • CNTK will be installed into the CNTK-PY34 environment

1 - I agree and want to continue Q - Quit the installation process

1 Determining Operations to perform. This will take a moment...

The following operations will be performed: * Setup/Update CNTK Wheel * Clone CNTK from Github repository

Do you want to continue? (y/n) y Performing download operations Download operations finished

Performing install operations Setup/Update of CNTK Wheel environment. Please be patient.... You are using pip version 8.1.2, however version 9.0.0 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command. Cloning CNTK (branch v2.0.beta2.0) repository....

Fatal error during script execution! System.InvalidOperationException: This command cannot be run due to the error: The system cannot find the file specifie d. at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)

PS C:\local\Scripts\windows>

我不熟悉使用PowerShell,所以我不知道在哪裏何去何從。

回答

3

幾個問題。您是否在使用beta1beta2? 如果您使用的是beta1,只是提醒您有一個beta2現在提供了錯誤修復以及對安裝腳本的一些改進,但我不認爲已解決此特定問題!

它看起來像cntk git存儲庫的克隆失敗。

Git安裝在您的機器上?有沒有GIT.EXE在c:\Program Files\Git\bin\?

我認爲安裝發現一個現有的git.exe(在不同的位置),現在試圖調用它在'錯誤'的位置。

你最簡單的解決方法(如果安裝了GIT),從命令提示符:

cd c:/ 
md \repos 
cd repos 
clone --branch v2.0.beta1.0 --recursive https://github.com/Microsoft/CNTK 

如果你已經轉移到β2,更換v2.0.beta1.0v2.0.beta2.0