Kann eine Python -Datei nicht mit PIPX und Gradio_Client ausführen

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Kann eine Python -Datei nicht mit PIPX und Gradio_Client ausführen

by Anonymous » 29 Apr 2025, 12:24

Ich möchte eine API auf Huggingface.co ausprobieren. Ich muss: < /p>

Code: Select all

pip install gradio_client
< /code>
Aber mit Debian muss ich PIPX verwenden. Also tue ich: < /p>
pipx install gradio_client --include-deps
< /code>
Dann habe ich eine Dateiklassifizierung.py, die mit: < /p>
beginntfrom gradio_client import Client
< /code>
Und wenn ich es tue: < /p>
pipx run classification.py
< /code>
Ich habe einen Fehler: < /p>
ModuleNotFoundError: No module named 'gradio_client'
< /code>
Ich weiß nicht, ob der Fehler von meinem PIPX -Befehl oder von Gradio stammt. Letzte Informationen, wenn ich es tue: < /p>
pipx list
< /code>
Ich erhalte: < /p>
venvs are in /home/tibo/.local/share/pipx/venvs
apps are exposed on your $PATH at /home/tibo/.local/bin
manual pages are exposed at /home/tibo/.local/share/man
package gradio 5.27.0, installed using Python 3.13.2
- gradio
- upload_theme
package gradio-client 1.9.0, installed using Python 3.13.2
- httpx
- huggingface-cli
- normalizer
- tqdm
- websockets
So führen Sie meine Klassifizierung aus.py?

Top