Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11

I am trying to use whisper and pytube to extract the text from a youtube video. even though i install whisper i get the following error.

ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11 ERROR: Could not find a version that satisfies the requirement torch (from whisper) (from versions: none) ERROR: No matching distribution found for torch

I'm using MacOS Ventura, if anyone has any ideas it would be very helpful, thanks

Previously I had python 11.0, then I installed python 3.9.9 so that whisper can run normally, although I still get the same error as when I had python 11.0

like image 265
Yul Cardenas Avatar asked Aug 11 '26 08:08

Yul Cardenas


1 Answers

Firstly remove all python versions()

  1. if you use linux, on your system installed python3.10 or like that by default, and if you need a special version to use for installing, you must set default python version. solution
  2. in windows, you must remove another versions of python and install only >=3.7 <> <=3.10 versions
  3. the best solution for this use python virtualenvironment:
  • create with specific python version venv:
python3.10 -m venv myvenv

  • activate venv(linux):
source venv/bin/activate
  • (windows):
.\venv\Scripts\activate

then you can pip installs

like image 82
GeM Avatar answered Aug 13 '26 22:08

GeM



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!