Code: Select all
my_project/
│── src/
│ ├── backend/
│ │ ├── __init__.py
│ │ ├── some_module.py
│── scripts/
│ ├── my_script.py
│── pyproject.toml (or setup.py)
│── other_project_files...
Was mache ich falsch? /> Ich renne < /p>
Code: Select all
uv init
< /code>
Dann reite ich < /p>
ausuv run pip install -e .
< /code>
Dann < /p>
uv run scripts/importmylist.py
< /code>
Es gibt: < /p>
Traceback (most recent call last):
File "...\test_repo\scripts\importmylist.py", line 1, in
from src.utils import my_list
ModuleNotFoundError: No module named 'src'
< /code>
Inhalt von PYProject: < /p>
[project]
name = "test-repo"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = []