Python pip install .创建两个不同名称的文件夹 dist-info 和 file foler

Python pip install . creates two folders dist-info and file foler in different name

提问人:Tiancheng Liu 提问时间:11/18/2023 更新时间:11/18/2023 访问量:32

问:

我有以下项目结构

├── MyApplication
│   └── app
│       └── file.py
│       └── __init__.py
│   └── setup.py

运行pip install.后,我得到了以下软件包信息:

MyApplication-0.1.0.dist-info\
app\

我也尝试从 Github URL 安装它,有两个目的地,一个是 MyApplication-0.1.0.dist-info 文件夹,另一个是应用程序文件夹。我应该怎么做才能将其修复为一个普通的 Python 包,其文件夹与原始项目结构相同?

pip python打包

评论


答: 暂无答案