AI4Finance-Foundation / FinRL

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

help, Installation failed #733

Open stefan321 opened 2 years ago

stefan321 commented 2 years ago

Describe the bug help, Installation failed The first run “Stock_NeurIPS2018_SB3.ipynb” Python 3.7.4

To Reproduce `--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /var/folders/27/y6h4nvq51rd9vn4z2kyxk8fm0000gn/T/ipykernel_49098/4094496222.py in 8 get_ipython().run_line_magic('matplotlib', 'inline') 9 from finrl.meta.preprocessor.yahoodownloader import YahooDownloader ---> 10 from finrl.meta.preprocessor.preprocessors import FeatureEngineer, data_split 11 from finrl.meta.env_stock_trading.env_stocktrading import StockTradingEnv 12 from finrl.agents.stablebaselines3.models import DRLAgent

~/opt/anaconda3/lib/python3.7/site-packages/finrl/meta/preprocessor/preprocessors.py in 8 from stockstats import StockDataFrame as Sdf 9 ---> 10 from finrl import config 11 from finrl.meta.preprocessor.yahoodownloader import YahooDownloader 12

~/opt/anaconda3/lib/python3.7/site-packages/finrl/init.py in 1 from future import annotations 2 ----> 3 from finrl.test import test 4 from finrl.trade import trade 5 from finrl.train import train

~/opt/anaconda3/lib/python3.7/site-packages/finrl/test.py in 6 from finrl.config import TEST_START_DATE 7 from finrl.config_tickers import DOW_30_TICKER ----> 8 from finrl.meta.env_stock_trading.env_stocktrading import StockTradingEnv 9 10

~/opt/anaconda3/lib/python3.7/site-packages/finrl/meta/env_stock_trading/env_stocktrading.py in 3 from typing import List 4 ----> 5 import gym 6 import matplotlib 7 import matplotlib.pyplot as plt

~/opt/anaconda3/lib/python3.7/site-packages/gym/init.py in 11 ) 12 from gym.spaces import Space ---> 13 from gym.envs import make, spec, register 14 from gym import logger 15 from gym import vector

~/opt/anaconda3/lib/python3.7/site-packages/gym/envs/init.py in 8 9 # Hook to load plugins from entry points ---> 10 _load_env_plugins() 11 12

~/opt/anaconda3/lib/python3.7/site-packages/gym/envs/registration.py in load_env_plugins(entry_point) 248 def load_env_plugins(entry_point="gym.envs"): 249 # Load third-party environments --> 250 for plugin in metadata.entry_points().get(entry_point, []): 251 # Python 3.8 doesn't support plugin.module, plugin.attr 252 # So we'll have to try and parse this ourselves

AttributeError: 'EntryPoints' object has no attribute 'get'`

stefan321 commented 2 years ago

I think the version of some packages may not match. Please give me an environment configuration that can run normally.👔

zhumingpassional commented 2 years ago

@stefan321 did you run the notebook by clicking "open the colab"?