#VSCode, error when installing discord.py

72 messages · Page 1 of 1 (latest)

solid elk
#

pls help

solid elk
#

@lyric karma

#

i have tried upgrading pip, latest pip and still doesn't work

lyric karma
#

it's not a pip issue

#

we will need to run a few set of commands to get the info from python packages and what we can do to install discord.py properly

solid elk
#

alright, sure

lyric karma
#

this should be run in cmd, in your venv to be specific if you're using one
pip show wheel

solid elk
lyric karma
#

install wheel
pip install wheel

solid elk
#

succesfully installed

lyric karma
#

get the wheel info again
pip show wheel

solid elk
#

is it safe to share that info

#

nvm it is

lyric karma
#

ok now, let's check the version of discord.py offered by default by pip

solid elk
#

so how do i check if its latest

lyric karma
#

so "officially" only up to Python 3.10 is supported.
what's your python version python --version

solid elk
#

3.12.1

#

do i downgrade down to 3.10

lyric karma
#

no need

#

these are the dependencies required for discord.py
aiosignal, attrs, frozenlist, multidict, yarl, aiohttp

#

we may need to install them separately

solid elk
#

so i js type pip install for each 1?

lyric karma
#

but let's try installing discord.py again
the binary version only

solid elk
#

alright

#

yeah same error

#

i tried installing discord.py

lyric karma
#

pip install --only-binary :all: discord.py

#

that way

solid elk
lyric karma
#

check the updated reply

solid elk
#

error

#

ERROR: Cannot install discord-py==1.0.0, discord-py==1.0.1, discord-py==1.1.0, discord-py==1.1.1, discord-py==1.2.0, discord-py==1.2.1, discord-py==1.2.2, discord-py==1.2.3, discord-py==1.2.4, discord-py==1.2.5, discord-py==1.3.0, discord-py==1.3.1, discord-py==1.3.2, discord-py==1.3.3 and discord-py==1.3.4 because these package versions have conflicting dependencies.

lyric karma
#

ok we need to set the version as well

solid elk
#

okay

lyric karma
#

check the available package versions for discord.py
pip index versions discord.py

solid elk
#

Available versions: 2.3.2, 2.3.1, 2.3.0, 2.2.3, 2.2.2, 2.2.0, 2.1.1, 2.1.0, 2.0.1, 2.0.0, 1.7.3, 1.7.2, 1.7.1, 1.7.0, 1.6.0, 1.5.1, 1.5.0, 1.4.2, 1.4.1, 1.4.0, 1.3.4, 1.3.3, 1.3.2, 1.3.1, 1.3.0, 1.2.5, 1.2.4, 1.2.3, 1.2.2, 1.2.1, 1.2.0, 1.1.1, 1.1.0, 1.0.1, 1.0.0, 0.16.12, 0.16.11, 0.16.10, 0.16.9, 0.16.8, 0.16.7, 0.16.6, 0.16.5, 0.16.4, 0.16.3, 0.16.2, 0.16.1, 0.16.0, 0.15.1, 0.15.0, 0.14.3, 0.14.2, 0.14.1, 0.14.0, 0.13.0, 0.12.0, 0.11.0, 0.10.0, 0.9.2, 0.9.1, 0.9.0, 0.8.0, 0.7.0, 0.6.3, 0.6.2, 0.6.1, 0.6.0, 0.5.1, 0.5.0, 0.4.1, 0.4.0, 0.3.1, 0.3.0, 0.2.1, 0.2.0, 0.1.0

lyric karma
#

okay we try to install 2.3.2 binary only
pip install discord.py==2.3.2 --only-binary :all:

solid elk
lyric karma
#

okay as expected. we need to install aiohttp separately

#

pip install aiohttp==3.9.1 --only-binary :all:

solid elk
#

C:\Users\User>pip install aiohttp==3.9.1 --only-binary :all:
Collecting aiohttp==3.9.1
Using cached aiohttp-3.9.1-cp312-cp312-win_amd64.whl.metadata (7.6 kB)
Collecting attrs>=17.3.0 (from aiohttp==3.9.1)
Using cached attrs-23.2.0-py3-none-any.whl.metadata (9.5 kB)
INFO: pip is looking at multiple versions of aiohttp to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement multidict<7.0,>=4.5 (from aiohttp) (from versions: none)
ERROR: No matching distribution found for multidict<7.0,>=4.5

lyric karma
#

did that install installed multidict?

solid elk
lyric karma
#

pip show multidict

#

please reply of what was asked.

solid elk
lyric karma
#

pip show multidict

solid elk
#

Packages not found: WARNING: package(s) not found for multidict:

lyric karma
#

install multidict
pip install multidict==6.0.4 --only-binary :all:

solid elk
#

ERROR: Could not find a version that satisfies the requirement multidict (from versions: none)
ERROR: No matching distribution found for multidict

lyric karma
#

what versions available for multidict

#

pip index versions multidict

solid elk
#

multidict (6.0.4)
Available versions: 6.0.4, 6.0.3, 6.0.2, 6.0.1, 6.0.0, 5.2.0, 5.1.0, 5.0.2, 5.0.1, 5.0.0, 4.7.6, 4.7.5, 4.7.4, 4.7.3, 4.7.2, 4.7.1, 4.6.1, 4.6.0, 4.5.2, 4.5.1, 4.5.0, 4.4.2, 4.4.1, 4.4.0, 4.3.1, 4.3.0, 4.2.0, 4.1.0, 4.0.0, 3.3.2, 3.3.1, 3.3.0, 3.2.0, 3.1.3, 3.1.1, 3.1.0, 3.0.0, 2.1.6, 2.1.5, 2.1.4, 2.1.3, 2.1.2, 2.1.1, 2.1.0, 2.0.1, 2.0.0, 1.2.2, 1.2.1, 1.2.0, 1.1.0, 1.0.3, 1.0.2, 1.0.1

lyric karma
#

``pip install multidict==6.0.4 --only-binary :all:`

solid elk
#

ERROR: Could not find a version that satisfies the requirement multidict==6.0.4 (from versions: none)
ERROR: No matching distribution found for multidict==6.0.4

lyric karma
#

pip install multidict==6.0.4

#

the version is there. what actually you punched?

solid elk
#

what?

lyric karma
#

what did you entered?

solid elk
lyric karma
#

pip install multidict==6.0.4 --only-binary :all:
did you entered this?

solid elk
#

yes

#

error

lyric karma
#

we need the binary only

solid elk
#

ERROR: Could not find a version that satisfies the requirement multidict==6.0.4 (from versions: none)
ERROR: No matching distribution found for multidict==6.0.4, for binary

lyric karma
#
ERROR: Could not find a version that satisfies the requirement multidict==6.0.4 (from versions: none)
ERROR: No matching distribution found for multidict==6.0.4

what triggered this?

solid elk
#

the binary

lyric karma
#

try the other versions then