【问题标题】:CNTK 2.0 beta 7 installation error - install.ps1 not digitally signedCNTK 2.0 beta 7 安装错误 - install.ps1 未进行数字签名
【发布时间】:2017-01-06 21:58:48
【问题描述】:

我下载了 cntk 2.0 beta 7。在执行 .\install.ps1 时,出现 install.ps1 未进行数字签名的错误:

Windows PowerShell 版权所有 (C) 2016 微软公司。保留所有权利。

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_Policies,网址为 http://go.microsoft.com/fwlink/?LinkID=135170。 在行:1 字符:1 + .\install.ps1 + ~~~~~~~~~~~~~ + CategoryInfo : SecurityError: (:) [], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess


如果我启动 powershell -executionpolicy unrestricted 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:\local\cntk\Scripts\install\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
 - Anaconda3 will be installed into [C:\local\Anaconda3-4.1.1-Windows-x86_64]
 - A CNTK-PY34 environment will be created or updated in [C:\local\Anaconda3-4.1.1-Windows-x86_64\envs]
 - 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:\local\cntk\scripts\cntkpy34.bat]:No-Execute flag. No file created
Install operations finished

【问题讨论】:

    标签: cntk


    【解决方案1】:

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

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

    .\install.ps1 -Execute 运行脚本

    【讨论】:

      【解决方案2】:

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

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

      “SignTool 作为 Windows SDK 的一部分提供......”

      【讨论】:

        【解决方案3】:
        Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
        

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

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2015-10-04
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2023-03-05
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多