NniOnWindows.md 2.31 KB
Newer Older
1
# NNI on Windows (experimental feature)
Chi Song's avatar
Chi Song committed
2

3
Currently we support local, remote and pai mode on Windows. Windows 10.1809 is well tested and recommended.
4
5
6

## **Installation on Windows**

7
  please refer to [Installation](Installation.md#installation-on-windows) for more details.
8

Chi Song's avatar
Chi Song committed
9
When these things are done, use the **config_windows.yml** configuration to start an experiment for validation.
10
11

```bash
12
nnictl create --config nni\examples\trials\mnist\config_windows.yml
13
14
```

Chi Song's avatar
Chi Song committed
15
16
17
18
19
For other examples you need to change trial command `python3` into `python` in each example YAML.

## **FAQ**

### simplejson failed when installing NNI
20
21

Make sure C++ 14.0 compiler installed.
Chi Song's avatar
Chi Song committed
22
23
24
25
26
>building 'simplejson._speedups' extension error: [WinError 3] The system cannot find the path specified

### Fail to run PowerShell when install NNI from source

If you run PowerShell script for the first time and did not set the execution policies for executing the script, you will meet this error below. Try to run PowerShell as administrator with this command first:
27
28
29
30

```bash
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
```
Chi Song's avatar
Chi Song committed
31

32
33
>...cannot be loaded because running scripts is disabled on this system.

34
### Trial failed with missing DLL in command line or PowerShell
Chi Song's avatar
Chi Song committed
35

36
This error caused by missing LIBIFCOREMD.DLL and LIBMMD.DLL and fail to install SciPy. Using Anaconda or Miniconda with Python(64-bit) can solve it.
37
38
39
>ImportError: DLL load failed

### Trial failed on webUI
Chi Song's avatar
Chi Song committed
40
41
42

Please check the trial log file stderr for more details. If there is no such file and NNI is installed through pip, then you need to run PowerShell as administrator with this command first:

43
44
45
```bash
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
```
Chi Song's avatar
Chi Song committed
46

47
If there is a stderr file, please check out. Two possible cases are as follows:
Chi Song's avatar
Chi Song committed
48
49
50

* forget to change the trial command `python3` into `python` in each experiment YAML.
* forget to install experiment dependencies such as TensorFlow, Keras and so on.
51

52
53
54
55
### Fail to use BOHB on Windows
Make sure C++ 14.0 compiler installed then try to run `nnictl package install --name=BOHB` to install the dependencies.

### Not supported tuner on Windows
56
SMAC is not supported currently, the specific reason can be referred to this [GitHub issue](https://github.com/automl/SMAC3/issues/483).
57
58
59
60

Note:

* If there is any error like `Segmentation fault`, please refer to [FAQ](FAQ.md)