AI4Finance-Foundation / AI4Finance-Foundation/FinRL
could not import finrl in google colab
- 主要语言
- Jupyter Notebook
- 星标
- 16.3k
- 派生
- 3.5k
- PR 合并指标
- 30 天内没有已合并 PR
描述
**this problem happened recently and i'm sure that last week was working fine**
i'm developing my own strategies using finrl environment but tonight when i start to install and import dependencies i got "No module named 'finrl'". before i successfully installed these packages :
!pip install stockstats
# ## install finrl library
!pip install wrds
!pip install swig
!pip install -q condacolab
import condacolab
condacolab.install()
!apt-get update -y -qq && apt-get install -y -qq cmake libopenmpi-dev python3-dev zlib1g-dev libgl1-mesa-glx swig
!pip install git+https://github.com/AI4Finance-Foundation/FinRL.git
then import them as template:
import datetime
import gymnasium as gym
import numpy as np
import pandas as pd
import yfinance as yf
from stockstats import StockDataFrame as Sdf
import torch
import torch.nn as nn
from sklearn.preprocessing import MinMaxScaler
import itertools
from stable_baselines3 import PPO
from stable_baselines3.common.vec_env import DummyVecEnv
import matplotlib
import matplotlib.pyplot as plt
#from finrl.agents.stablebaselines3.models import DRLAgent,DRLEnsembleAgent
from finrl.plot import backtest_stats, backtest_plot, get_daily_return, get_baseline
from pprint import pprint
import sys
sys.path.append("../FinRL-Library")
import itertools
error:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
[](https://localhost:8080/#) in ()
19
20 #from finrl.agents.stablebaselines3.models import DRLAgent,DRLEnsembleAgent
---> 21 from finrl.plot import backtest_stats, backtest_plot, get_daily_return, get_baseline
22
23 from pprint import pprint
ModuleNotFoundError: No module named 'finrl'
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。