浏览代码

Update Installation for windows

I added the changes that allowed me to do the installation.
/develop-generalizationTraining-TrainerController
GitHub 6 年前
当前提交
404bad6f
共有 1 个文件被更改,包括 18 次插入5 次删除
  1. 23
      docs/Installation-Windows.md

23
docs/Installation-Windows.md


</p>
After installation, you must open __Anaconda Navigator__ to finish the setup. From the Windows search bar, type _anaconda navigator_. You can close Anaconda Navigator after it opens.
If environmental variables were not created, in System Variables "Path" add:
```
C:\ProgramData\Anaconda3\Scripts\conda.exe
C:\ProgramData\Anaconda3\Scripts
C:\ProgramData\Anaconda3\
C:\ProgramData\Anaconda3\python.exe
```
## Step 2: Setup and Activate a New Conda Environment
You will create a new [Conda environment](https://conda.io/docs/) to be used with ML-Agents. This means that all the packages that you install are localized to just this environment. It will not affect any other installation of Python or other environments. Whenever you want to run ML-Agents, you will need activate this Conda environment.

```
conda create -n ml-agents python=3.6
conda create -n ml-agents python=3.5
```
You may be asked to install new packages. Type `y` and press enter _(make sure you are connected to the internet)_. You must install these required packages. The new Conda environment is called ml-agents and uses Python version 3.6.

Next, install `tensorflow`. Install this package using `pip` - which is a package management system used to install Python packages. In the same Anaconda Prompt, type in the following command _(make sure you are connected to the internet)_:
```
pip install tensorflow
pip install tensorflow==1.4.0
```
## Step 3: Install Required Python Packages

```
pip install .
pip install docopt
```
This will complete the installation of all the required Python packages to run ML-Agents.

### Install Nvidia CUDA toolkit
[Download](https://developer.nvidia.com/cuda-toolkit-archive) and install the CUDA toolkit from Nvidia's archive. The toolkit includes GPU-accelerated libraries, debugging and optimization tools, a C/C++ compiler and a runtime library and is needed to run ML-Agents. In this guide, we are using version 8.0.61 ([direct link](https://developer.nvidia.com/compute/cuda/8.0/Prod2/network_installers/cuda_8.0.61_win10_network-exe)).
[Download](https://developer.nvidia.com/cuda-toolkit-archive) and install the CUDA toolkit from Nvidia's archive. The toolkit includes GPU-accelerated libraries, debugging and optimization tools, a C/C++ (Step: Visual Studio 2015) compiler and a runtime library and is needed to run ML-Agents. In this guide, we are using version 8.0.61 ([direct link](https://developer.nvidia.com/compute/cuda/8.0/Prod2/network_installers/cuda_8.0.61_win10_network-exe)).
Before installing, please make sure you __close any running instances of Unity or Visual Studio__.

Next, install `tensorflow-gpu` using `pip`. In an Anaconda Prompt with the Conda environment ml-agents activated, type in the following command _(make sure you are connected to the internet)_:
```
pip install tensorflow-gpu
pip install tensorflow-gpu==1.4.0
```
Lastly, you should test to see if everything installed properly and that TensorFlow can identify your GPU. In the same Anaconda Prompt, type in the following command:

```
Found device 0 with properties ...
```
<p>
Step Visual Studio 2015: unistall Visual Studio 2017 that comes with the Unity installation, download Visual Studio Enterprise 2015 and install the SDK when installing. If you don't want to install Visual Studio Enterprise 2015, at least install Visual C++ Redistributable for Visual Studio 2015 and Visual Studio 2015 Windows SDK.
Had to paste this “lib” folder from C:\Program Files (x86)\Microsoft Visual Studio 14.0\lib
Into C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\PlatformSDK\lib
</p>
## Acknowledgements
正在加载...
取消
保存