How to install discord.py rewrite?
Question:
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.
Answers:
Try using
pip install -U git+https://github.com/Rapptz/discord.py@rewrite#egg=discord.py[voice]
That should go to the rewrite
branch of the discord.py
repository and get the egg file to install.
If you still have a problem you can use :
python3 -m pip install -U https://github.com/Rapptz/discord.py/archive/rewrite.zip#egg=discord.py[voice]
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]
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!
Try:
pip install -U git+https://github.com/Rapptz/discord.py@rewrite#egg=discord.py[voice]
Or:
python -m pip install discord.py
If you are using PyCharm I think you should use the 2nd one
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:UsersmaxDesktopDiscordBot
Next type this in CMD: pip install discord.py
That should work
-
Go to python.org and click on download python.
-
Now, open and run it. Make sure you add python to the path. Click on Install. Once installed you can close it.
-
Go to git-scm.com and click on Download for Windows.
-
Once installed open it. Make sure Use git from windows command prompt
is selected.
Then after clicking on next on everything, click on install.
-
Once install is finished, hit finish.
-
Copy your script address. In my case, it was Local//Programs//Python//Python39//Scripts
-
Open your command prompt and type cd Local//Programs//Python//Python39//Scripts
. Paste your address there, mine will not work for you. Hit Enter.
-
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 😉
Make sure Python is in your system PATH.
python -m pip install -u discord.py
Use:
py -m pip install discord.py
Try Typing py -3.9 -m pip install discord.py[voice] --extra-index-url https://gorialis.github.io/pip/
in your CMD/Terminal. It worked for me. Credit to @Gorilias On Github.
This should work:
pip install -U git+https://github.com/Rapptz/discord.py@rewrite#egg=discord.py[voice]
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]
pip install discord.py
Installing 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+https://github.com/Rapptz/discord.py@master
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
if u cant find python just do "where python" in ur IDE, then cd the folder and pip install discord.py
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.
Try using
pip install -U git+https://github.com/Rapptz/discord.py@rewrite#egg=discord.py[voice]
That should go to the rewrite
branch of the discord.py
repository and get the egg file to install.
If you still have a problem you can use :
python3 -m pip install -U https://github.com/Rapptz/discord.py/archive/rewrite.zip#egg=discord.py[voice]
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]
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!
Try:
pip install -U git+https://github.com/Rapptz/discord.py@rewrite#egg=discord.py[voice]
Or:
python -m pip install discord.py
If you are using PyCharm I think you should use the 2nd one
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:UsersmaxDesktopDiscordBot
Next type this in CMD: pip install discord.py
That should work
-
Go to python.org and click on download python.
-
Now, open and run it. Make sure you add python to the path. Click on Install. Once installed you can close it.
-
Go to git-scm.com and click on Download for Windows.
-
Once installed open it. Make sure
Use git from windows command prompt
is selected.
Then after clicking on next on everything, click on install. -
Once install is finished, hit finish.
-
Copy your script address. In my case, it was
Local//Programs//Python//Python39//Scripts
-
Open your command prompt and type
cd Local//Programs//Python//Python39//Scripts
. Paste your address there, mine will not work for you. Hit Enter. -
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 😉
Make sure Python is in your system PATH.
python -m pip install -u discord.py
Use:
py -m pip install discord.py
Try Typing py -3.9 -m pip install discord.py[voice] --extra-index-url https://gorialis.github.io/pip/
in your CMD/Terminal. It worked for me. Credit to @Gorilias On Github.
This should work:
pip install -U git+https://github.com/Rapptz/discord.py@rewrite#egg=discord.py[voice]
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]
pip install discord.py
Installing 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+https://github.com/Rapptz/discord.py@master
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
if u cant find python just do "where python" in ur IDE, then cd the folder and pip install discord.py