Installing Nightly version of pytorch using suggested pip command keeps getting weird errors

Hi guys,

Not sure if anyone has encountered errors like this before, but my Windows 11 setup keeps getting the error after using the command suggested on the installation guide page. The reason why I would like to install the preview version is I would like to try on CUDA12. I’ve got CUDA12 installed and also it’s the matching version of cudnn 8.9.2.26_cuda12.

Really appreciate your help. Thanks in advance.

Installation command pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu121

Error message:

Blockquote
ERROR: Exception:
Traceback (most recent call last):
File “C:\Users\Edward\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip_internal\cli\base_command.py”, line 169, in exc_logging_wrapper
status = run_func(*args)
^^^^^^^^^^^^^^^
File “C:\Users\Edward\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip_internal\cli\req_command.py”, line 248, in wrapper
return func(self, options, args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\Edward\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip_internal\commands\install.py”, line 449, in run
installed = install_given_reqs(
^^^^^^^^^^^^^^^^^^^
File “C:\Users\Edward\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip_internal\req_init_.py”, line 72, in install_given_reqs
requirement.install(
File “C:\Users\Edward\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip_internal\req\req_install.py”, line 800, in install
install_wheel(
File “C:\Users\Edward\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip_internal\operations\install\wheel.py”, line 731, in install_wheel
_install_wheel(
File “C:\Users\Edward\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip_internal\operations\install\wheel.py”, line 591, in _install_wheel
file.save()
File “C:\Users\Edward\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip_internal\operations\install\wheel.py”, line 390, in save
shutil.copyfileobj(f, dest)
File “C:\Users\Edward\AppData\Local\Programs\Python\Python311\Lib\shutil.py”, line 197, in copyfileobj
buf = fsrc_read(length)
^^^^^^^^^^^^^^^^^
File “C:\Users\Edward\AppData\Local\Programs\Python\Python311\Lib\zipfile.py”, line 955, in read
data = self._read1(n)
^^^^^^^^^^^^^^
File “C:\Users\Edward\AppData\Local\Programs\Python\Python311\Lib\zipfile.py”, line 1045, in _read1
self._update_crc(data)
File “C:\Users\Edward\AppData\Local\Programs\Python\Python311\Lib\zipfile.py”, line 973, in _update_crc
raise BadZipFile(“Bad CRC-32 for file %r” % self.name)
zipfile.BadZipFile: Bad CRC-32 for file ‘torch/lib/cublasLt64_12.dll’