浏览代码

cleaned up code markdowns

/develop-generalizationTraining-TrainerController
GitHub 7 年前
当前提交
54f849d8
共有 1 个文件被更改,包括 24 次插入13 次删除
  1. 37
      docs/Installation-Windows.md

37
docs/Installation-Windows.md


To create a new Conda environment, open a new Anaconda Prompt (_Anaconda Prompt_ in the search bar) and type in the following command:
conda create -n ml-agents python=3.6
```conda create -n ml-agents python=3.6```
You may be asked to install new packages. Type `y` and press enter _(make sure you are connected to the internet)_. You will need to install these packages. This command will create a new Conda environment called ml-agents using Python version 3.6.

To use this environment, you will need to activate it. _(In the future, if you need to use this environment again, you can run the same command)_. In the same Anaconda Prompt, type in the following command:
conda activate ml-agents
```
conda activate ml-agents
```
pip install tensorflow tensorflow-gpu
```
pip install tensorflow tensorflow-gpu
```
Lastly, you should test to see if everything installed properly. You can do this to see if TensorFlow can identify your GPU. In the same Anaconda Prompt, type in the following command:
```
python
Lastly, you should test to see if everything installed properly. You can do this to see if TensorFlow can identify your GPU. In the same Anaconda Prompt, type in the following command:
import tensorflow as tf
python
import tensorflow as tf
sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
```
You should see something similar to:

If you haven't already, make sure to clone the repository. You can do this using Git ([download here](https://git-scm.com/download/win)) and running the following commands in a new or same Anaconda Prompt (_if you closed the prompt from Step 5, you can activate the ml-agents Conda environment by typing `activate ml-agents`_):
git clone git@github.com:Unity-Technologies/ml-agents.git
```
git clone git@github.com:Unity-Technologies/ml-agents.git
```
cd C:\Downloads\ml-agents\python
```
cd C:\Downloads\ml-agents\python
```
pip install .
```
pip install .
```
This will complete the installation of all the required Python packages to run ML-Agents.

正在加载...
取消
保存