AI4Finance-Foundation / FinRL

FinRL: Financial Reinforcement Learning. 🔥
https://ai4finance.org
MIT License
9.4k stars 2.29k forks source link

I imported all the example code to Colab, and run exactly as it is, but seems none of these sample codes works in my env #1002

Open alecinvan opened 1 year ago

alecinvan commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

sebnapi commented 1 year ago

Yeah guys, you need to fix the version of all the requirements, I went through so many errors and I am stuck again. Very hard to use this library.

sebnapi commented 1 year ago

I've got the "FinRL_Ensemble_StockTrading_ICAIF_2020" to work with extracting all requirements:

wrds==3.1.6
pandas==1.4.4
scipy==1.10.1
sqlalchemy==1.4.46
psycopg2-binary==2.9.5
numpy==1.22.4
greenlet==2.0.2
pytz==2022.7.1
python-dateutil==2.8.2
six==1.15.0
swig==4.1.1
finrl @ git+https://github.com/AI4Finance-Foundation/FinRL.git@423f45f39d31df862e20b1d95a4da714e94e3a72
elegantrl @ git+https://github.com/AI4Finance-Foundation/ElegantRL.git#egg=elegantrl@68bf0ea4ef3fb461026ece8897deabb92aeead32
pyfolio==0.9.2
matplotlib==3.5.3
exchange_calendars==3.6.3
ray[default,tune]==2.3.0
scikit-learn==1.2.2
stable-baselines3==1.7.0
gputil==1.4.0
stockstats==0.5.2
jqdatasdk==1.8.11
ccxt==3.0.4
yfinance==0.2.12
tensorboardX==2.6
alpaca_trade_api==3.0.0
importlib-metadata==4.13.0
gym @ git+https://github.com/openai/gym.git@9180d12e1b66e7e2a1a622614f787a6ec147ac40 # changed due to bug
pandas==1.4.4
lz4==4.3.2
numpy==1.22.4
pyluach==2.2.0
korean-lunar-calendar==0.3.1
toolz==0.12.0
pytz==2022.7.1
python-dateutil==2.8.2
zipp==3.15.0
urllib3==1.26.14
msgpack==1.0.3
requests==2.28.2
deprecation==2.1.0
websockets==10.4
aiohttp==3.8.1
PyYAML==6.0
websocket-client==1.5.1
async-timeout==4.0.2
aiosignal==1.3.1
attrs==22.2.0
multidict==6.0.4
yarl==1.8.2
frozenlist==1.3.3
charset-normalizer==2.1.1
packaging==23.0
setuptools==65.5.0 # changed due to bug
cryptography==39.0.2
certifi==2022.12.7
aiodns==3.0.0
cloudpickle==2.2.1
virtualenv==20.21.0
#grpcio==1.51.3 # changed due to incompatibility
filelock==3.9.0
protobuf==3.19.6
jsonschema==4.3.3
click==8.1.3
tabulate==0.8.10
smart-open==6.3.0
pydantic==1.10.6
opencensus==0.11.2
py-spy==0.3.14
aiohttp-cors==0.7.0
prometheus-client==0.16.0
gpustat==1.0.0
colorful==0.5.5
threadpoolctl==3.1.0
joblib==1.1.1
scipy==1.10.1
torch==1.13.1
pymysql==1.0.2
SQLAlchemy==1.4.46
six==1.15.0
thriftpy2==0.4.16
kiwisolver==1.4.4
pillow==8.4.0
fonttools==4.39.0
cycler==0.11.0
pyparsing==3.0.9
ipython==7.9.0
seaborn==0.11.2
empyrical==0.5.5
multitasking==0.0.11
appdirs==1.4.4
beautifulsoup4==4.11.2
frozendict==2.3.5
html5lib==1.1
lxml==4.9.2
pycares==4.3.0
soupsieve==2.4
cffi==1.15.1
pandas-datareader==0.10.0
nvidia-ml-py==11.495.46
psutil==5.9.4
blessed==1.20.0
webencodings==0.5.1
pickleshare==0.7.5
prompt-toolkit==2.0.10
backcall==0.2.0
pexpect==4.8.0
jedi==0.18.2
traitlets==5.7.1
decorator==4.4.2
pygments==2.6.1
idna==2.10
greenlet==2.0.2
ply==3.11
typing-extensions==4.5.0
distlib==0.3.6
platformdirs==3.1.0
pyglet==2.0.5
box2d-py==2.3.5
pyrsistent==0.19.3
opencensus-context==0.1.3
google-api-core==2.11.0
wcwidth==0.2.6
pycparser==2.21
googleapis-common-protos==1.58.0
google-auth==2.16.2
parso==0.8.3
ptyprocess==0.7.0
cachetools==5.3.0
pyasn1-modules==0.2.8
rsa==4.9
pyasn1==0.4.8

tensorboard # added

If some of you want to do the same for other notebooks, this is the regex I used:

Requirement already satisfied: ([\w\-=><\d.,!]*) in [\w\/\d.-]* \(([^()]|(?R))*\) \(([\d.]*)\)

finally I can play with it a bit.

joshwigginton commented 1 year ago

Thanks - installing the requirements above enabled me to run the ensemble notebook

YangletLiu commented 1 year ago

Yeah guys, you need to fix the version of all the requirements, I went through so many errors and I am stuck again. Very hard to use this library.

I'm so sorry for the trouble that you were having. "Easy to use" is not our primary goal, since we foresee the steep learning curve. We hope the ones that master those tools will win in the market.

ShuningZhao commented 1 year ago

@sebnapi what version of pip and python do you have? I tried to install your requirements.txt but it kept on failing.