Discord.py Rewrite Installation`

Hello,

I’m trying to install the Discord.py rewrite. I’ve tried running
pip install discord.py==1.0.1
pip install -U git+https://github.com/Rapptz/discord.py@rewrite#egg=discord.py[voice]
pip install -U git+https://github.com/Rapptz/discord.py@rewrite#egg=discord.py[voice]
however, none of these work. I’m getting this error.

ERROR: Command "git checkout -q rewrite" failed with error code 1 in /tmp/pip-install-qDasmF/discord.py

Any help is appreciated. :slight_smile:

Hey there,

Solution

The Discord.py rewrite branch was merged and it does not exist anymore.
Perhaps, use the version of discord.py that is available in PyPI, which is the latest one at the moment.

If doesn’t solve the issue

If the error persists, install it by executing py -3 -m pip install -U discord.py , and simply leave requirements.txt with discord.py.

How I fixed the issue?

I had to specify discord.py==1.2.2, and not just discord.py in requirements.txt.

Happy Glitching!

The system isn’t recognizing any discord.py packages above 0.16.12.

Hey @EdwardRBLX I’m not sure exactly what you mean by “recognizing”, but as discussed in Discord.py no longer supports Python 3.5.2, v0.16.12 is the last version of discord.py that works with the installed version of python3. We hope to update Python in the containers “soon”, but I don’t have a specific timeline for that yet.