zackees / transcribe-anything

Input a local file or url and this service will transcribe it using Whisper AI. Completely private and Free 🤯🤯🤯
MIT License
532 stars 46 forks source link

Installation Failure: PyTorch 1.12.1 with CUDA 116 Not Available in Package Index #11

Closed stevie86 closed 8 months ago

stevie86 commented 1 year ago

I am trying to install PyTorch version 1.12.1 with CUDA 116 using pip but it fails because this version is not available in the PyTorch package index.

Steps to Reproduce Run the command: pip install torch==1.12.1 --extra-index-url https://download.pytorch.org/whl/cu116 Expected Behavior The PyTorch version 1.12.1 with CUDA 116 should be installed successfully.

Actual Behavior The installation fails with the following error message:

ERROR: Could not find a version that satisfies the requirement torch==1.12.1 (from versions: 2.0.0, 2.0.1)
ERROR: No matching distribution found for torch==1.12.1

And a subprocess.CalledProcessError is raised.

Environment OS: Windows 10 Python Version: 3.11 Pip Version: pip 23.2.1 Additional Context

dakink commented 1 year ago

what has worked for me is to change the versions in the install_cuda.py


TENSOR_VERSION = "2.0.1"
CUDA_VERSION = "cu118"
TENSOR_CUDA_VERSION = f"{TENSOR_VERSION}+{CUDA_VERSION}"
EXTRA_INDEX_URL = "https://download.pytorch.org/whl/cu118"```
zackees commented 8 months ago

I've got a new package isolation scheme that make install_cuda.py obsolete. Just install with pip install transcribe-anything and everything should work now. The program is now pretty safe to install globally. Cuda-pytorch will be installed automatically if nvidia-smi is installed on your system.