AI4Finance-Foundation / AI4Finance-Foundation/FinRL-Meta

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

Offen
#142 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
Python
Sterne
1.9k
Forks
751
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.