Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

How to install discord.py rewrite?

Writer Andrew Mclaughlin

I ran python3 -m pip install -U discord.py but it only installed discord.py v0.16.x. How do I install the new discord.py rewrite v1.0?

I uninstalled the old discord.py using pip uninstall discord.py and re-ran pip to install discord.py, only to get version v0.16.x again instead of the new v1.0 version.

18 Answers

Try using

pip install -U git+

That should go to the rewrite branch of the discord.py repository and get the egg file to install.

1

If you still have a problem you can use :

python3 -m pip install -U 

Open Command Prompt and type in;

pip install discord.py

or;

pip install discord.py==1.0.1

and then if you want voice do;

pip install discord.py[voice]

1

Try:

pip install -U git+

Or:

python -m pip install discord.py

If you are using PyCharm I think you should use the 2nd one

As of 2021, the default install command:

pip install discord

Will install the "rewritten" (>1.0) version of discord.py

To update use the update command:

pip install discord --update
1

If you want to upgrade to the most recent version you can use:

pip install discord.py --upgrade
1

Easy, open Command Prompt and type "pip install discord.py" If you do that you're most probably going to want "pip install requests" If the pip command doesn't work, open your python installer and make sure to click on the add to evironment variables option! That's all your good to go! Use Visual Studio Code or Atom, they are the best so far that I have used for my bot!

I believe that discord.py rewrite is officially published based on its formal website information.

so, the command for installing the module will become pretty easy.

pip install discord.py

if you want to install a specific version. (the newest at this point is 1.3.4)

pip install discord.py==1.3.4

if you have an issue with the pip that cmd cannot recognize your pip command, then do this:

py -3 -m pip install discord.py

(but you need to have pip first anyway).

Based on its website, discord.py drops the support of python 3.4, it only supports python 3.5-3.8. Hope these information could help. :-)

Open CMD and go to the folder of your discord bot eg:

cd C:\Users\max\Desktop\DiscordBot

Next type this in CMD: pip install discord.pyThat should work

1
  1. Go to python.org and click on download python.

  2. Now, open and run it. Make sure you add python to the path. Click on Install. Once installed you can close it.

  3. Go to git-scm.com and click on Download for Windows.

  4. Once installed open it. Make sure Use git from windows command prompt is selected. Then after clicking on next on everything, click on install.

  5. Once install is finished, hit finish.

  6. Copy your script address. In my case, it was Local//Programs//Python//Python39//Scripts

  7. Open your command prompt and type cd Local//Programs//Python//Python39//Scripts. Paste your address there, mine will not work for you. Hit Enter.

  8. Then type py -3 -m pip install -U discord.py. Hit enter again. Once the install is finished close the command prompt.

Now you are ready to go ;)

2

Use:

py -m pip install discord.py

Try Typing py -3.9 -m pip install discord.py[voice] --extra-index-url in your CMD/Terminal. It worked for me. Credit to @Gorilias On Github.

This should work:

pip install -U git+

however if that fails I recommend updating pip and trying again.

If your also having trouble with all the above install python using the Microscoft Store and use the commands above in command prompt

For really easiest way. Just type this in your command prompt or terminal.

pip install discord-ext-alternatives

and you should install this too

pip install discord

and when you're going to import it Just use this

import discord
from discord.ext import commands
bot \\or whatever your variable is this = commands.Bot(command_prefix="prefix here")

İt is very easy actually. Open command prompt and write:

pip install discord.py

After that if you want voice:

pip install discord.py[voice]
1

pip install discord.pyInstalling from the source[branch:master] is not recommended since it is in the testing phase(Writing as of 5/30/2021).If you want to test out buttons then sure go ahead and run pip install -U git+

Make sure Python is in your system PATH.

python -m pip install -u discord.py
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy