AI4Finance-Foundation / FinRL-Meta

FinRL­-Meta: Dynamic datasets and market environments for FinRL.
https://ai4finance.org
MIT License
1.24k stars 576 forks source link

Python Installation Error: Multiple top-level packages discovered in a flat-layout #142

Open CheungBok opened 2 years ago

CheungBok commented 2 years ago

I met a problem when I tried to install FinRL-Meta by running "python setup.py install".

error: Multiple top-level packages discovered in a flat-layout: ['figs', 'agents', 'results', 'datasets', 'finrl_meta', 'trained_models', 'tensorboard_log', 'tutorials_python', 'tutorials_notebook'].

To avoid accidental inclusion of unwanted files or directories, setuptools will not proceed with this build.

If you are trying to create a single distribution with multiple packages on purpose, you should not rely on automatic discovery. Instead, consider the following options:

  1. set up custom discovery (find directive with include or exclude)
  2. use a src-layout
  3. explicitly set py_modules or packages with a list of names

To find more information, look for "package discovery" on setuptools docs.

I temporarily solved it by moving the .py files to the root directory of the project.

BTW, FinRL-meta requires "Ta-Lib" and "Tushare" packages. But those two did not mention in the requirements.txt.

eyast commented 2 years ago

Thank you! We've modified the setup instructions accordingly. Please accept our apologies for the time it took to revert back. Can you confirm that it works from your end?

Thanks!