Discord auf python importieren geht nicht?
Hallo zusammen,
Wenn ich in python discord importieren will, also "import discord" funktioniert das nicht.
Als erstes kommt dort eine fehlermeldung namens "ModuleNotFoundError: No module named 'discord".
Wenn ich dann das discord package in python runterladen will, kommt diese Fehlermeldung:
"Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- discord
Current channels:
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
and use the search bar at the top of the page."
pip und discord.py hab ich auch schon heruntergeladen.
Könnt ihr mir vielleicht irgendwie weiterhelfen?
3 Antworten
Hm komisch, ich würde dir raten Python und die Programmsoftware neu zu installieren, wenn das nicht hilft deinsstallier alles zu dem Thema und wieder neu.
Schau dir mal dass an
https://discordpy.readthedocs.io/en/stable/intro.html#installing
Ok versuch mal dass hier
$ git clone https://github.com/Rapptz/discord.py
$ cd discord.py
$ python3 -m pip install -U .[voice]
"invalid syntax" oder es wurd nicht gefunden..
Er versucht das Module in den Anaconda repos zu finden, obwohl er im PyPi repo suchen sollte.
Irgendwas an deinem Command ist also falsch. Er müsste so aussehen:
pip install discord
(solange das Modul auch auf PyPi so heißt)
conda o. ä. musst du nicht eingeben
Ich hab diesen befehl auch schon ausgeführt. Nur kommt da dieselbe meldung "ModuleNotFoundError: No module named "discord"
Ich hab diese schon alle installiert