#VSCode, error when installing discord.py
72 messages · Page 1 of 1 (latest)
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
alright, sure
this should be run in cmd, in your venv to be specific if you're using one
pip show wheel
install wheel
pip install wheel
succesfully installed
get the wheel info again
pip show wheel
ok now, let's check the version of discord.py offered by default by pip
nvm it's here https://pypi.org/project/discord.py/
so how do i check if its latest
so "officially" only up to Python 3.10 is supported.
what's your python version python --version
no need
these are the dependencies required for discord.py
aiosignal, attrs, frozenlist, multidict, yarl, aiohttp
we may need to install them separately
so i js type pip install for each 1?
but let's try installing discord.py again
the binary version only
check the updated reply
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.
ok we need to set the version as well
okay
check the available package versions for discord.py
pip index versions discord.py
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
okay we try to install 2.3.2 binary only
pip install discord.py==2.3.2 --only-binary :all:
okay as expected. we need to install aiohttp separately
pip install aiohttp==3.9.1 --only-binary :all:
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
did that install installed multidict?
didnt even work
please specify which installation.
pip show multidict
Packages not found: WARNING: package(s) not found for multidict:
install multidict
pip install multidict==6.0.4 --only-binary :all:
ERROR: Could not find a version that satisfies the requirement multidict (from versions: none)
ERROR: No matching distribution found for multidict
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
``pip install multidict==6.0.4 --only-binary :all:`
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 did you entered?
.
pip install multidict==6.0.4 --only-binary :all:
did you entered this?
we need the binary only
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
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?
the binary
try the other versions then