AI4Finance-Foundation / FinRL

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

Not able to run the first file #730

Open GirishKumarSharma opened 1 year ago

GirishKumarSharma commented 1 year ago

girish@pc1804:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.6 LTS Release: 18.04 Codename: bionic girish@pc1804:~$ python --version Python 3.6.5 :: Anaconda, Inc. girish@pc1804:~$ ` girish@pc1804:~$ source activate finrl (finrl) girish@pc1804:~$ jupyter notebook`

http://localhost:8888/notebooks/FinRL/tutorials/1-Introduction/Stock_Fundamental.ipynb

## install finrl library !pip install git+https://github.com/AI4Finance-Foundation/FinRL.git

is returning below error :

Collecting git+https://github.com/AI4Finance-Foundation/FinRL.git Cloning https://github.com/AI4Finance-Foundation/FinRL.git to /tmp/pip-req-build-75ppc0wj Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-req-build-75ppc0wj/setup.py", line 1 from __future__ import annotations ^ SyntaxError: future feature annotations is not defined ` ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-75ppc0wj/ You are using pip version 10.0.1, however version 21.3.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.`

When I checks /tmp folder there is no pip-req-build-75ppc0wj folder exists.

lcavalie commented 1 year ago

Looks like your environment is not up to date at all (pip), I would recommend to start by an overall update and see if the problem remains.

GirishKumarSharma commented 1 year ago

Will you please mention which Python, Pip and all required packages version along with OS info, you are using. I will clone my environment as you mention please.

zhumingpassional commented 1 year ago

pls open the file by clicking the "colab" icon.