Closed Technolog796 closed 7 months ago
It's an environment variable, so you can set it like UV_HTTP_TIMEOUT=1000 uv pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121 --verbose
.
I try to execute this command in windows powershell, but I get the following error:
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (UV_HTTP_TIMEOUT=10000:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
I think on powershell the syntax is
$env:FOO = 'BAR'; ./myscript
So the above would be
$env:UV_HTTP_TIMEOUT=1000; uv pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121 --verbose
Thank you - it worked!
I'm trying to install PyTorch, but I'm getting the following error:
My current uv version is 0.1.22 and my current python version is 3.11.7