pip install -e. 时出现的错误
今天在给项目文件安装依赖时,使用pip install -e.
来安装时,出现报错:
(cheetah_gym) mutong@mutong-System-Product-Name:~/RobotDoc/cheetah_gym$ pip install -e.
Obtaining file:///home/mutong/RobotDoc/cheetah_gym
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
error: Multiple top-level packages discovered in a flat-layout: ['docker', 'cheetah_gym'].
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. u