hugocen/freqtrade-gym

Tensorflow Version

XL-Reaper opened this issue · 3 comments

Hi,

could it be that this project is based on Tensorflow 1.15? I do get dependency errors when trying to run.
It complain about deepq missing tensorflow.contrib, but that is deprecated in Tensorflow 2.
Would it be possible for you to update the project to Tensorflow 2?

This works for me:
pip install https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.5.0-py3-none-any.whl

link

For me I had to do couple of things and lastly it worked. Here are the steps that I have followed:

I am using anaconda for creating virtual environments so first I git clone freqtrade's original repo.
Inside of the repo I git clone this freqtrade-gym.

I copied the files where they belong as the documentation says.

Then I add tensorflow==1.15 into environment.yaml file.

$ conda env create -n freqtrade-gym python==3.6 -f environment.yml

pip install gym

pip install stable-baselines[mpi]

Lastly I cut the LoadRlModel.py from strageies because it was throwing "file couldn't be found error"