Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
32744774
Commit
32744774
authored
Apr 22, 2019
by
Chi Song
Committed by
SparkSnail
Apr 22, 2019
Browse files
Chinese Translation (#1004)
parent
0bb76b01
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
111 additions
and
33 deletions
+111
-33
deployment/pypi/README_zh_CN.md
deployment/pypi/README_zh_CN.md
+69
-30
docs/zh_CN/Installation.md
docs/zh_CN/Installation.md
+42
-3
No files found.
deployment/pypi/README_zh_CN.md
View file @
32744774
# 用于 NNI 的 python 包索引 (pypi)
## 1. 说明
这是用于 NNI 项目的 PyPI 生成和上传的工具。
## 2.准备环境
在生成和上传 NNI 包之前,确保使用了下列环境。
## **Linux**
Ubuntu 16.04 LTS
make
wget
Python >= 3.5
Pip
Node.js
Yarn
*
**准备环境**
在生成和上传 NNI 包之前,确保使用了下列环境。
Ubuntu 16.04 LTS
make
wget
Python >= 3.5
Pip
Node.js
Yarn
## 2.如何生成
```
bash
make
```
## 3.如何上传
### 上传测试包
*
**如何生成**
```
bash
make
```
```
bash
TWINE_REPOSITORY_URL
=
https://test.pypi.org/legacy/ make upload
```
*
**如何上传**
**上传测试包**
```
bash
TWINE_REPOSITORY_URL
=
https://test.pypi.org/legacy/ make upload
```
上传过程中,可能需要输入 https://test.pypi.org 的用户和密码。
**上传发布包**
```
bash
make upload
```
上传过程中,可能需要输入 https://pypi.org 的用户和密码。
上传过程中,可能需要输入 https://test.pypi.org 的用户和密码。
## **Windows**
### 上传发布包
*
**准备环境**
在生成和上传 NNI 包之前,确保使用了下列环境。
Windows 10
powershell
Python >= 3.5
Pip
Node.js
Yarn
tar
```
bash
make upload
```
*
**如何生成**
```
bash
powershell ./install.ps1
```
上传过程中,可能需要输入 https://pypi.org 的用户和密码。
\ No newline at end of file
*
**如何上传**
**upload for testing**
```
bash
powershell ./upload.ps1
```
上传过程中,可能需要输入 https://test.pypi.org 的用户和密码。
**上传发布包**
```
bash
powershell ./upload.ps1
-test
$False
```
上传过程中,可能需要输入 https://pypi.org 的用户和密码。
\ No newline at end of file
docs/zh_CN/Installation.md
View file @
32744774
# 安装 NNI
当前
仅
支持 Linux
和 Mac
。
当前支持
在
Linux
,Mac 和 Windows 下安装
。
## **安装**
## **
在 Linux 和 Mac 下
安装**
*
**通过 pip 命令安装 NNI**
...
...
@@ -14,7 +14,7 @@
*
**通过源代码安装 NNI**
先决条件:
`python >=3.5, git, wget`
先决条件:
`python >=3.5
`
,
`
git
`
,
`
wget`
```
bash
git clone
-b
v0.6 https://github.com/Microsoft/nni.git
...
...
@@ -26,6 +26,33 @@
也可将 NNI 安装到 docker 映像中。 参考
[
这里
](
../deployment/docker/README.md
)
来生成 NNI 的 Docker 映像。 也可通过此命令从 Docker Hub 中直接拉取 NNI 的映像
`docker pull msranni/nni:latest`
。
## **在 Windows 上安装**
*
**通过 pip 命令安装 NNI**
先决条件:
`python >= 3.5`
```
bash
python
-m
pip
install
--upgrade
nni
```
*
**通过源代码安装 NNI**
先决条件:
`python >=3.5`
,
`git`
,
`powershell`
在第一次使用 PowerShell 时,需要作为管理员运行此命令:
```
bash
Set-ExecutionPolicy
-ExecutionPolicy
Unrestricted
```
然后可以使用管理员或当前用户安装 NNI:
```
bash
git clone https://github.com/Microsoft/nni.git
cd
nni
powershell ./install.ps1
```
## **系统需求**
以下是 NNI 在 Linux 下的最低配置。 由于程序变更,NNI 的最低配置会有所更改。
...
...
@@ -52,6 +79,18 @@
|
**网络**
| 宽带连接 | |
|
**分辨率**
| 1024 x 768 以上 | |
以下是 NNI 在 Windows 下的最低配置。 由于程序变更,NNI 的最低配置会有所更改。
| | 最低配置 | 推荐配置 |
| -------- | ------------------------------------- | ----------------------------------------- |
|
**操作系统**
| Windows 10 | Windows 10 |
|
**CPU**
| Intel® Core™ i3 或 AMD Phenom™ X3 8650 | Intel® Core™ i5 或 AMD Phenom™ II X3 或更高配置 |
|
**GPU**
| NVIDIA® GeForce® GTX 460 | NVIDIA® GeForce® GTX 660 或更高配置 |
|
**内存**
| 4 GB | 6 GB |
|
**存储**
| 30 GB 可用的磁盘空间 | |
|
**网络**
| 宽带连接 | |
|
**分辨率**
| 1024 x 768 以上 | |
## 更多
*
[
概述
](
Overview.md
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment