-
Notifications
You must be signed in to change notification settings - Fork 76
Installing Unity ml agents on Linux
pz1004 edited this page Aug 17, 2018
·
3 revisions
OS: Ubuntu 16.04 / x86_64
python version: 3.6
pytorch : 0.4.0
cuda : 9.0
cudnn : 7.0.5 for cuda 9.0
replace pgtravel
with your favor name.
$ virtualenv pgtravel -p python3.6
$ source pgtravel/bin/activate
$ git clone https://github.com/Unity-Technologies/ml-agents
$ cd ml-agents/python
$ pip install .
- Link to the official homepage for cuda 9.0
- Link to the official homepage for cudnn 7.0.5
- You need Nvidia account for downloading cudnn
- https://developer.nvidia.com/rdp/cudnn-archive
pip3 install http://download.pytorch.org/whl/cu90/torch-0.4.0-cp36-cp36m-linux_x86_64.whl
pip3 install torchvision
pip3 install http://download.pytorch.org/whl/cpu/torch-0.4.0-cp36-cp36m-linux_x86_64.whl
pip3 install torchvision
Refer installation manual for other platforms from the pytorch official homepage
Note that the prerequisites other than tensorboardX are installed when installing Unity ml-agents
$ git clone https://github.com/reinforcement-learning-kr/pg_travel
$ pip install tensorboardX