You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on installing it. We also recommend using [conda](https://docs.conda.io/en/latest/) or [mamba](https://github.com/mamba-org/mamba) to manage your python virtual environments.
52
53
53
-
### Clone the ML-Agents Toolkit Repository (Optional)
54
+
#### Conda python setup
55
+
56
+
Once conda has been installed in your system, open a terminal and execute the following commands to setup a python 3.10 virtual environment
### Clone the ML-Agents Toolkit Repository (Recommended)
54
64
55
65
Now that you have installed Unity and Python, you can now install the Unity and
56
66
Python packages. You do not need to clone the repository to install those
@@ -153,17 +163,29 @@ To install the `mlagents` Python package, activate your virtual environment and
153
163
run from the command line:
154
164
155
165
```sh
156
-
python -m pip install mlagents==0.30.0
166
+
cd /path/to/ml-agents
167
+
python -m pip install ./ml-agents-envs
168
+
python -m pip install ./ml-agents
157
169
```
158
170
159
-
Note that this will install `mlagents` from PyPi, _not_ from the cloned
171
+
Note that this will install `mlagents` from the cloned repository, _not_ from the PyPi
160
172
repository. If you installed this correctly, you should be able to run
161
173
`mlagents-learn --help`, after which you will see the command
162
174
line parameters you can use with `mlagents-learn`.
163
175
176
+
**NOTE:** Since ML-Agents development has slowed, PyPi releases will be less frequent. However, you can install from PyPi by executing
177
+
the following command:
178
+
179
+
```shell
180
+
python -m pip install mlagents
181
+
```
182
+
183
+
which will install the latest version of ML-Agents and associated dependencies available on PyPi. Note, you need to have the matching version of
184
+
the Unity packages with the particular release of the python packages. You can find the release history [here](https://github.com/Unity-Technologies/ml-agents/releases)
185
+
164
186
By installing the `mlagents` package, the dependencies listed in the
165
187
[setup.py file](../ml-agents/setup.py) are also installed. These include
166
-
[PyTorch](Background-PyTorch.md) (Requires a CPU w/ AVX support).
0 commit comments