URL: https://linuxfr.org/forums/linux-debian-ubuntu/posts/resolu-whisper-sur-debian Title: [résolu] whisper sur Debian Authors: tisaac Date: 2023年11月19日T21:04:41+01:00 License: CC By-SA Tags: whisper et python Score: 1 J'essaie de me mettre à l'IA. Il faut bien être hype, non ? Bon, j'essaie surtout de faire du speech to text comme on dit en bon français. J'ai vu passé des commentaires pas trop négatif sur [whisper](https://github.com/openai/whisper) J'ai aussi vu des incantations avec pip mais quand j'essaie ces incantations sur ma debian, j'ai le message suivant : error: externally-managed-environment ×ばつ This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install. If you wish to install a non-Debian-packaged Python package, create a virtual environment using python3 -m venv path/to/venv. Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make sure you have python3-full installed. If you wish to install a non-Debian packaged Python application, it may be easiest to use pipx install xyz, which will manage a virtual environment for you. Make sure you have pipx installed. See /usr/share/doc/python3.11/README.venv for more information. note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification. Comme je suis un garçon pas contraire, j'ai installé python3-whisper. Puis, j'ai fait un petit doc avec les lignes de codes suggérées par Internet import whisper model = whisper.load_model("large") result = model.transcribe("audio.mp3") print(result["text"]) Mais mon ordinateur, il est pas content quand j'essaie de faire tourner ce programme. Il me dit Traceback (most recent call last): File "/home/user/Documents/Tanguy/test.py", line 3, in model = whisper.load_model("base") ^^^^^^^^^^^^^^^^^^ AttributeError: module 'whisper' has no attribute 'load_model' Comme la ligne import ne pose pas problème, je me dis que j'ai bien installé quelque chose sur mon PC et que ce qq chose doit bien être importé lorsque le programme tourne. Mais je suis déçu et surtout je ne comprend pas que mon PC m'indique une AttributeError Si vous avez une piste d'explication, je suis preneur. Si vous avez en plus une piste pour que whisper fonctionne, je suis tout ouïe.

AltStyle によって変換されたページ (->オリジナル) /