How to install discord.py rewrite?

旧城冷巷雨未停 提交于 2019-11-26 23:28:36

问题


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.


回答1:


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.




回答2:


Or if not work:

python3 -m pip install -U https://github.com/Rapptz/discord.py/archive/rewrite.zip#egg=discord.py[voice]



回答3:


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]




回答4:


discord.py rewrite is now deleted and there is only async now!



来源:https://stackoverflow.com/questions/50686388/how-to-install-discord-py-rewrite

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!