i have python 3.11 downloaded, and i installed pip with it.however, i can't install discord py with

py -3 -m pip install -U discord.py

i've tried a few other ways, still didn't work.

in the end it says:

 note: This error originates from a subprocess, and is likely not a problem with pip.ERROR: Failed building wheel for yarlFailed to build multidict yarlERROR: Could not build wheels for multidict, yarl, which is required to install pyproject.toml-based projects

there are a few other errors throughout the process.

4

Best Answer


Hmmm, it seems it might be a problem due to dependencies to yarl and multidict (happens). I've had the same problem with itertools, and even opencv taking extremely long to build with a non-upgraded pip version!

Have you tried upgrading pip? Same problem with those libraries' dependencies.

pip3 install --upgrade pip

If pip direct installation doesn't work, try cloning the git repo:

$ pip install git+https://github.com/Rapptz/discord.py

You can try pip install discord.py

You could also try pip install discord