Code: Select all
uv init new_app
hinzuzufügen
Code: Select all
uv add --link-mode copy flask requests
Code: Select all
Using CPython 3.11.10 interpreter at: /home/alex/.pyenv/versions/3.11.10/bin/python3.11
Creating virtual [url=viewtopic.php?t=25360]environment[/url] at: .venv\
error: failed to symlink file from /home/alex/.pyenv/versions/3.11.10/bin/python3.11 to /home/alex/new_app/.venv/bin/python: Operation not permitted (os error 1)
Code: Select all
error: Project virtual [url=viewtopic.php?t=25360]environment[/url] directory `/home/alex/Work/Learn/UV/new_app/.venv` cannot be used because it is not a valid Python [url=viewtopic.php?t=25360]environment[/url] (no Python executable was found)
- Das System ist ein VirtualBox-Ubuntu-System (24.04.3), das mit Python 3.11 auf einem Windows 11-Host läuft.
- Ich möchte keinen Root-Zugriff verwenden (nie erforderlich, bevor ich mit Python arbeite). Oder funktioniert UV nur auf der Root-Ebene?
- Alle Dateien in /home/alex/.pyenv/versions/3.11.10/bin sind nicht Root. Es handelt sich nur um normale Benutzerdateien (und auch die Verzeichnisse dazwischen).
- Funktioniert unter Windows und macOS (aber nicht unter Ubuntu)
- Pyenv entfernt (hoffentlich korrekt)
- Jetzt ist meine Schlüsselring-Installation weg
- is /usr/bin/python
Code: Select all
which python - ist 3.12.3 (sogar ich habe (?) Python 3.11 mit uv ??? installiert)
Code: Select all
python -V - gibt zurück: nichts
Code: Select all
getcap /usr/bin/python
Code: Select all
> uv init test2
Initialized project `test2` at `/home/alex/Work/Learn/UV/test2`
> cd test2
> uv add flask requests
Using CPython 3.11.14
Creating virtual [url=viewtopic.php?t=25360]environment[/url] at: .venv
error: failed to symlink file from /home/alex/.local/share/uv/python/cpython-3.11.14-linux-x86_64-gnu/bin/python3.11 to /home/alex/Work/Learn/UV/test2/.venv/bin/python: Operation not permitted (os error 1)
Mobile version