AI4Finance-Foundation / FinRobot

FinRobot: An Open-Source AI Agent Platform for Financial Applications using LLMs 🚀 🚀 🚀
https://ai4finance.org
Apache License 2.0
1.61k stars 248 forks source link

Can't install any version of finrobot but 0.0.1 #20

Open VioletRaven opened 5 months ago

VioletRaven commented 5 months ago

Hello,

I am experiencing difficulties installing any version of the finrobot library beyond the initial release (0.0.1). Despite trying different Python versions and environments (both venv and conda), the issue persists. Additionally, while I can successfully import finrobot.utils from the command line, I encounter import errors when attempting to do so in a Jupyter Notebook.

Steps to Reproduce: Create a new virtual environment using either venv or conda. Attempt to install a version of finrobot beyond 0.0.1 using:

bash
pip install finrobot==0.1.4

ERROR: Package 'finrobot' requires a different Python: 3.12.4 not in '<3.12,>=3.10' Even though I tried with version 3.11

Open a Jupyter Notebook and try to import finrobot.utils:

python
from finrobot.utils import blablabla

ERROR: cannot import finrobot

Expected Behavior:

The installation of finrobot versions beyond 0.0.1 should succeed. The finrobot.utils module should be importable in a Jupyter Notebook without errors.

Actual Behavior:

Installation of finrobot versions beyond 0.0.1 fails. Importing finrobot.utils in a Jupyter Notebook results in an error, although it works from the command line.

Environment:

Operating System: Windows 11 Python Versions Tried: 11.9, 12.4 Jupyter Notebook Version: Latest finrobot Versions Tried: 0.1.4, installed via pip install finrobot, pip install finrobot==0.1.4, and directly from the .tar file.

Additional Information:

I suspect there might be issues related to Jupyter Notebook kernels or environment configurations. I have ensured that the correct Python interpreter is selected in the Jupyter Notebook. I have tried setting the PYTHONPATH and modifying sys.path within the notebook, but the issue persists.

Could you please assist me in resolving these issues?

BruceYanghy commented 5 months ago

Can you just do:

  1. git clone https://github.com/AI4Finance-Foundation/FinRobot.git
  2. cd FinRobot
  3. pip install -e .