我是cntk的新手。我按照这个页面https://github.com/Microsoft/CNTK/wiki/Setup-CNTK-on-your-machine在我的Windows 8.1系统中安装了cntk。但是,在成功安装cntk-2.0.beta15.0-cp35-cp35m-win_amd64.whl后,我无法从cmd运行cntk。提示显示没有这样的命令。
我进行了快速测试并认为cntk已成功安装,如下所示。
F:\Anaconda3\Lib>python -c "import cntk; print(cntk.__version__)"
2.0.beta15.0
我搜索了%Anaconda3_HOME%\ Scripts中的cntk.exe但未找到任何内容。在我可以在命令行中运行cntk之前,我还需要采取任何其他步骤(我只是试着通过https://github.com/Microsoft/CNTK/wiki/Tutorial中的教程)吗?感谢。
答案 0 :(得分:3)
您引用的页面(https://github.com/Microsoft/CNTK/wiki/Setup-CNTK-on-your-machine)是安装条目页面,列出了各种安装选项。在页面顶部,它解释了将CNTK安装到python环境中的快速安装步骤。如果你只运行顶级' whl-download指令',CNTK只安装在python环境中,因为CNTK(dll和库)从python内部使用,所以不会是CNTK.exe ,不需要cntk.exe。
如果您想以独立方式运行CNTK,您应该使用“脚本驱动安装”#39;来自此页:https://github.com/Microsoft/CNTK/wiki/Setup-Windows-Binary-Script
THX 沃尔夫冈
答案 1 :(得分:0)
您需要从要运行cntk命令的控制台运行“\ cntk \ Scripts \ cntkpy35.bat”脚本。它为cntk设置了环境。
我在桌面上创建了快捷方式,将其作为目标,因此在控制台打开时会自动设置环境:
{
"name": "angular-quickstart",
"version": "1.0.0",
"description": "QuickStart package.json from the documentation, supplemented with testing support",
"scripts": {
"build": "tsc -p src/",
"build:watch": "tsc -p src/ -w",
"build:e2e": "tsc -p e2e/",
"serve": "lite-server -c=bs-config.json",
"serve:e2e": "lite-server -c=bs-config.e2e.json",
"prestart": "npm run build",
"start": "concurrently \"npm run build:watch\" \"npm run serve\"",
"pree2e": "npm run build:e2e",
"e2e": "concurrently \"npm run serve:e2e\" \"npm run protractor\" --kill-others --success first",
"preprotractor": "webdriver-manager update",
"protractor": "protractor protractor.config.js",
"pretest": "npm run build",
"test": "concurrently \"npm run build:watch\" \"karma start karma.conf.js\"",
"pretest:once": "npm run build",
"test:once": "karma start karma.conf.js --single-run",
"lint": "tslint ./src/**/*.ts -t verbose"
},
"keywords": [],
"author": "",
"license": "MIT",
"dependencies": {
"@angular/common": "~2.4.0",
"@angular/compiler": "~2.4.0",
"@angular/core": "~2.4.0",
"@angular/forms": "~2.4.0",
"@angular/http": "~2.4.0",
"@angular/platform-browser": "~2.4.0",
"@angular/platform-browser-dynamic": "~2.4.0",
"@angular/router": "~3.4.0",
"angular-in-memory-web-api": "~0.2.4",
"core-js": "^2.4.1",
"rxjs": "5.0.1",
"systemjs": "0.19.40",
"zone.js": "^0.7.4"
},
"devDependencies": {
"concurrently": "^3.2.0",
"lite-server": "^2.2.2",
"typescript": "~2.0.10",
"canonical-path": "0.0.2",
"tslint": "^3.15.1",
"lodash": "^4.16.4",
"jasmine-core": "~2.4.1",
"karma": "^1.3.0",
"karma-chrome-launcher": "^2.0.0",
"karma-cli": "^1.0.1",
"karma-jasmine": "^1.0.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~4.0.14",
"rimraf": "^2.5.4",
"@types/node": "^6.0.46",
"mystartup_commons": "bitbucket:ishan_dutta/mystartup_commons",
"@types/jasmine": "2.5.36"
},
"repository": {},
"jspm": {
"dependencies": {
"@angular/core": "npm:@angular/core@^2.4.10"
},
"devDependencies": {
"babel": "npm:babel-core@^5.8.24",
"babel-runtime": "npm:babel-runtime@^5.8.24",
"core-js": "npm:core-js@^1.1.4"
}
}
}
但是为了使这个快捷方式起作用,您需要从cntkpy35.bat中删除下一个检查:
C:\Windows\System32\cmd.exe /k "C:\CNTK\CNTK-2-0-beta15-0-Windows-64bit-GPU-1bit-SGD\cntk\Scripts\cntkpy35.bat"
答案 2 :(得分:0)
解决方案可以使用python3。我在linux中遇到了同样的问题。所以我下载了python3版本,它起作用了。对于Linux,它将是
pip3安装cntk