FinRL_Crypto icon indicating copy to clipboard operation
FinRL_Crypto copied to clipboard

Colab installation Issue

Open Daiiszuki opened this issue 1 year ago • 3 comments

Environment: Colab

I am trying to use run the 0_dl_trainval_data.py file, but receiving multiple errors after. It seems the issue is with the in finrl installation. I initially tried to install using pip install -r requirements.txt, which resulted in

× python [setup.py](http://setup.py/) egg_info did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  Preparing metadata (setup.py) ... error
error: metadata-generation-failed

Then I tried to downgrade to v65.5 using :

!pip3 install setuptools==65.5.0

with no luck.

Finally, I tried using the recommended way;

!pip install wrds
!pip install swig 
!pip install git+https://github.com/AI4Finance-Foundation/FinRl.git

followed by:

!git clone https://github.com/AI4Finance-Foundation/FinRL-Meta
%cd /FinRL-Meta/
!pip install git+https://github.com/AI4Finance-LLC/ElegantRL.git

Even after all that, I got

No module named binance

then ran pip install python-binance with success. Re-runing the file led to;

No module named Ta-Lib which I tried to install using;

#install talib
!wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz 
!tar xvzf ta-lib-0.4.0-src.tar.gz
import os
os.chdir('ta-lib') 
!./configure --prefix=/usr
!make
!make install
os.chdir('../')
!pip install TA-Lib

With no luck.

Is there something I could be doing wrong?

Daiiszuki avatar Apr 17 '23 14:04 Daiiszuki