hugocen / freqtrade-gym

A customized gym environment for developing and comparing reinforcement learning algorithms in crypto trading.
GNU General Public License v3.0
220 stars 46 forks source link

Tensorflow Version #11

Open XL-Reaper opened 3 years ago

XL-Reaper commented 3 years ago

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?

brizzbane commented 3 years ago

Yes.

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

xsa-dev commented 3 years ago

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

link

Hsgngr commented 3 years ago

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"