AI4Finance-Foundation / AI4Finance-Foundation/FinRL-Meta

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

Aperta
#142 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
Python
Stelle
1.9k
Fork
751
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.