Create a project uv init. This create the project files
uv venvcreates the actual .venv environment.uv venv --python 3.11.6use specific python versionuv addAdd a dependency to the project.uv add 'requests==2.31.0'specific versionuv add -r requirements.txtadd requirements.txt
uv removeRemove a dependency from the project.uv syncSync the project's dependencies with the environment.source .venv/bin/activateactivate the environment. Run sync first.
If an old version of torch is needed, check the CUDA requirements: https://pytorch.org/get-started/previous-versions/ I'm going to user 1.10.1 which uses CUDA 11.3