tomchang25 / whisper-auto-transcribe

Auto transcribe tool based on whisper
MIT License
220 stars 15 forks source link

webui.bat/install fails with Python 3.11 #56

Open PreownedFIN opened 1 year ago

PreownedFIN commented 1 year ago

Problem:

There are no available .whl packages for torch 1.12.1+cu113 for Python 3.11, as the latest ones are for 3.10 a the latest. This causes errors during install if you have Python 3.11 as the default Python interpreter when webui.bat creates the venv for this project.

Fix:

Make sure your Python version is (as of writing) 3.7, 3.8, 3.9, or 3.10, and this is what the venv is refering to.

How I fixed my install:

In the whisper-auto-transcribe folder: I deleted the venv created by webui.bat to remove the reference to the 3.11 install of Python. (Here you would find and install python 3.10 and use its install location instead of this one, I already had my old install in my Program Files tho'.) Recreate the venv: PS F:\whisper-auto-transcribe> & "C:\Program Files\Python310\python.exe" -m venv venv Now the venv is using Python 3.10, and the webui.bat runs as intended.

This is especially tricky for new users, as no official installers/binaries exist for older Python versions (including 3.10), where the current README points users to.
There are some good samaritans building them (Google can help you finding them), but I'm not sure if it is good to just link to one here, so no PR from me.
Then there is the build-your-own-Python-way, but if you can manage that, the missing .whls for torch wouldn't really be a problem for you.