Notice
Recent Posts
Recent Comments
Link
«   2025/02   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
Tags
more
Archives
Today
Total
관리 메뉴

Zorba blog

[Error] Kospeech 환경 설정 중 에러 Multiple top-level packages discovered in a flat-layout 본문

카테고리 없음

[Error] Kospeech 환경 설정 중 에러 Multiple top-level packages discovered in a flat-layout

Zorba blog 2022. 5. 4. 20:14

1. 에러 원인


 

setuptools 의 버전이 62.0.0으로 설치되었어서 깃허브에서 다운로드를 못했었다.

 

$ python setup.py install
packages/setuptools/dist.py:530: UserWarning: The version specified ('latest') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
  warnings.warn(
error: Multiple top-level packages discovered in a flat-layout: ['data', 'configs', 'dataset', 'kospeech'].

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.

 

2. 해결 방법


 

$pip install --upgrade setuptools=60

으로 다운그레이드 하니까 정상 작동한다.

 

3. 참고링크


https://github.com/pypa/setuptools/issues/3227

 

Comments