CNTK 2.0测试版7安装错误-install.ps1未进行数字签名



我下载了cntk 2.0测试版7。执行时。\install.ps1,未经数字签名的install.ps1出现此错误:

Windows PowerShell版权所有(C)2016 Microsoft Corporation。保留所有权利。

PS C:>cd。\local\cntk\Scripts\install\windows\PS C:\local\cntk\Scripts\install\windows>。\install.ps1.\install.ps1:无法加载文件C:\local\cntk\Scripts\install\windows\install.ps1。文件C: \local\cntk\Scripts\install\windows\install.ps1未进行数字签名。您不能在当前系统有关运行脚本和设置执行策略的详细信息,请参阅上的about_execution_Policieshttp://go.microsoft.com/fwlink/?LinkID=135170.行:1字符:1+。\install.ps1+~~~~~~~~~~~~~+CategoryInfo:SecurityError:(:)[],PSSecurityException+FullyQualifiedErrorId:未授权访问


并且如果我启动powershell-执行策略不受限制install.ps1可以运行,但没有安装任何东西,下面是输出:

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:localcntkScriptsinstallwindowsInstallCache]
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
- Anaconda3 will be installed into [C:localAnaconda3-4.1.1-Windows-x86_64]
- A CNTK-PY34 environment will be created or updated in [C:localAnaconda3-4.1.1-Windows-x86_64envs]
- CNTK will be installed or updated in the CNTK-PY34 environment

The parameter '-Execute' hasn't be supplied to the script.
The script will execute withouth making any actual changes to the machine.

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:
* Install Anaconda3-4.1.10
* Setup CNTK PythonEnvironment 3.4
* Setup/Update CNTK Wheel
* Create CNTKPY34 batch file
Do you want to continue? (y/n)
y
Performing download operations
Downloading [https://repo.continuum.io/archive/Anaconda3-4.1.1-Windows-x86_64.exe], please be patient....
** Running in DEMOMODE - no download performed
Download operations finished
Performing install operations
Installing Anaconda3-4.1.1. This will take several minutes. Please be patient ....
** Running in DEMOMODE - setting Exit Code **: 0
** Running in DEMOMODE - setting Exit Code **: 0
Setup/Update of CNTK Wheel environment. Please be patient....
** Running in DEMOMODE - setting Exit Code **: 0
Create-Batch [C:localcntkscriptscntkpy34.bat]:No-Execute flag. No file created
Install operations finished

请阅读wiki上的输出或文档!

"参数'-Execute'尚未提供给脚本。脚本将在不对机器进行任何实际更改的情况下执行">

.install.ps1 -Execute的身份运行脚本

我遇到了同样的错误,并使用Microsoft的签名工具对文件进行了数字签名。签名后,错误消失。

https://msdn.microsoft.com/en-us/library/windows/desktop/aa387764(v=vs.85).aspx

"SignTool是Windows SDK的一部分…">

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass

只需运行此命令试试这个简单的解决方案!

最新更新