Warum fällt die Installation von PIP aufgrund des Projektlayouts bei der Installation von Abhängigkeiten aus?Python

Python-Programme
Anonymous
 Warum fällt die Installation von PIP aufgrund des Projektlayouts bei der Installation von Abhängigkeiten aus?

Post by Anonymous »

Nach Ausführen von Python -m-PIP Installation.

Code: Select all

$ python -m pip install .
Processing /home/user/dev/report-sender/report_broadcaster
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
error: Multiple top-level packages discovered in a flat-layout: ['config', 'notifiers'].

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.
[end of output]

note: This error originates from a subprocess, and is likely not a [url=viewtopic.php?t=20324]problem[/url] with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a [url=viewtopic.php?t=20324]problem[/url] with pip.
Es scheint also, als ob die Anforderungen für das Erstellen von Rad nicht zufrieden waren, und sie waren nicht zufrieden, da mein Projekt kein ordnungsgemäßes Layout hatte (es deutet darauf hin, dass ich auf das Quelllayout wechselt). />

Code: Select all

[project]
name = "report-broadcaster"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"cryptography~=41.0",
"jsonschema~=4.23",
"pika~=1.3",
"psycopg2-binary~=2.9",
"pydantic~=2.0",
"python-dateutil~=2.9",
"pytz>=2025.1",
"requests~=2.31",
"shapely~=2.0",
"sqlalchemy~=2.0",
]

[tool.pytest.ini_options]
pythonpath = [
"."
]

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post