Python-UV-Modul: verwirrendes Verhalten

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Python-UV-Modul: verwirrendes Verhalten

by Anonymous » 29 Dec 2024, 07:06

Ich begann darüber nachzudenken, UV anstelle von Pip für mein Projekt zu verwenden. Bisher finde ich die Verwendung jedoch nicht so einfach, wie ich gehofft hatte.
BEARBEITEN: Betriebssystem Windows 10, Python 3.10 aus dem Windows Store installiert.
  • uv wird nicht zur PATH-Variablen hinzugefügt (ich hatte dieses Problem bei meinen ersten Tests nicht, aber jetzt schon. Ein Neustart hilft nicht)
  • Verwirrendes Verhalten mit VENV erstellt von uv
  • Sobald Venv über UV erstellt und aktiviert wurde, wird UV nicht mehr angezeigt (was Sinn macht, aber dann kann ich UV nicht per Pip installieren im neuen venv, da pip aus der Kern-Python-Installation verwendet wird.

Code: Select all

mkdir uvtest
cd uvtest
python -m uv init
python -m uv venv
.venv\Scripts\activate
python -m uv help REM .venv\Scripts\python.exe: No module named uv
pip install uv REM Requirement already satisfied: uv in c:\users\sergz\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (0.5.13)```

Top