Tests with different RL approaches to solve some enviroments from OpenAI-gym.
- Check python version:
python --version
- Download anaconda (check python 2 or 3 and select the appropriate Anaconda 2 or 3):
cd /tmp
curl -O https://repo.anaconda.com/archive/AnacondaX-2019.03-Linux-x86_64.sh
bash AnacondaX-2019.03-Linux-x86_64.sh
- Check installation:
conda -h
- Create and activate anaconda environment (“ML_env”) the environment should be created with Python 3.X as interpreter:
conda create --name ML_env python=3.X
conda activate ML_env
- Install numpy
conda install -c anaconda numpy
- Install pandas
conda install -c anaconda pandas
- Install torch
conda install -c pytorch pytorch
- Install matplotlib
conda install -c conda-forge matplotlib
- Install paho-mqtt. Check docmuentation about MQTT here
conda install -c conda-forge paho-mqtt
For GPU 11. Check your device specs
nvidia-smi
- Install the corresponding GPU drivers
- Install tensorFlow
conda install -c anaconda tensorflow-gpu
- (Optional) upgrade your cudatoolkit and cudnn if needed. For Nvidia SMI 470 and Cuda version 11.4:
conda install cudatoolkit=11.3.1 -c conda-forge
conda install -c conda-forge cudnn=8.2.*