freqtrade-gym icon indicating copy to clipboard operation
freqtrade-gym copied to clipboard

Tensorflow Version

Open XL-Reaper opened this issue 4 years ago • 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?

XL-Reaper avatar Jan 24 '21 17:01 XL-Reaper

Yes.

https://github.com/harry0731/freqtrade-gym/issues/5#issuecomment-744001545

brizzbane avatar Feb 16 '21 19:02 brizzbane

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

link

xsa-dev avatar May 06 '21 22:05 xsa-dev

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"

Hsgngr avatar May 26 '21 16:05 Hsgngr