Original Source Here
Setting up anaconda for keras-rl
Got stuck while trying to work with keras-rl github repository?
then this article is for you.
After reading the README.md and exploring the repo, you wanted to try some examples as provided in the readme file but, unexpectedly you ran into multiple errors due to the environment I had running?
Well, I personally spent a lot of time installing and deleting packages to get the right versions to work with that package.
Therefore, I am here today to show you how to set up your environment (and save some time 😉 ) using anaconda (you can do it on virtualenv, figure it out yourself 😉 ) to avoid any conflicts and to save your energy for learning and not fixing some versioning errors.
Create these files under a folder of your choice.
(notice that I wrote pip three times; the first one is to install pip, but, that installs pip version 20.2.4
the two other lines are to upgrade pip to the latest version to avoid annoying errors/warnings later)
Store both these files in a folder and open command prompt (powershell for windows and terminal in ubuntu 🙂 ) and cd to the directory where you put those files.
You need to create the anaconda environment, so enter this command:
conda env create -f environment.yml
Second, you should activate the environment created
conda activate deep
(notice that the name of the environment deep is mentioned in the first line in the environment.yml file)
So now, that you are inside the anaconda environment. You need to complete the installation of the remaining requirements.
pip install -r requirements.txt # installs all packages in the file
Lastly, is to install atari_py
pip install --no-index -f https://github.com/Kojoley/atari-py/releases atari_py
pip install atari-py==0.2.6
Trending AI/ML Article Identified & Digested via Granola by Ramsey Elbasheer; a Machine-Driven RSS Bot