[英]How can I add the Discord module in python without using pip?
How are you guys?你们好吗?
So to get straight to the point I wanted to create a Discord bot using Python but the thing is that when I want to install the discord module using pip by typing pip install discord
but since I'm using a PC without admin rights I have an error saying that it can't launch this program (pip) So to get straight to the point I wanted to create a Discord bot using Python but the thing is that when I want to install the discord module using pip by typing
pip install discord
but since I'm using a PC without admin rights I have an错误说它不能启动这个程序(pip)
So I'm here to ask if anyone knows how can I install the Discord module in python without pip?所以我在这里问是否有人知道如何在没有 pip 的 python 中安装 Discord 模块?
Thanks in advance!提前致谢!
~Sami ~萨米
It depends on which IDE you are using For example, you can download pycharm if you don't already have it and you can download the package from pycharm itself. It depends on which IDE you are using For example, you can download pycharm if you don't already have it and you can download the package from pycharm itself.
How you can do that is going to file ➜ Settings ➜ Project ➜ Python Interpreter ➜ and click the + sign over the package label and there you will be able to search for any package you want like discord.py How you can do that is going to file ➜ Settings ➜ Project ➜ Python Interpreter ➜ and click the + sign over the package label and there you will be able to search for any package you want like discord.py
Code
-> Download ZIP
) Code
-> Download ZIP
)discord.py-master
directory (with cd Desktop\discord.py-master
discord.py-master
目录(用cd Desktop\discord.py-master
python setup.py install
python setup.py install
You can try using py -m pip install discord .您可以尝试使用py -m pip install discord 。
Try this尝试这个
set PATH=%PATH%;C:\Python34\Scripts设置 PATH=%PATH%;C:\Python34\Scripts
check this link for more 'pip' is not recognized as an internal or external command检查此链接以获取更多“pip”未被识别为内部或外部命令
If the above doesn't work如果上述方法不起作用
You have to download the discord.py module here.您必须在此处下载 discord.py 模块。 https://pypi.org/project/discord.py/#files
https://pypi.org/project/discord.py/#files
and read this if you don't know how to import files如果您不知道如何导入文件,请阅读此内容
How do I use an external.py file? 如何使用 external.py 文件?
else别的
reinstall python and set the path like the below image重新安装 python 并设置如下图所示的路径
https://miro.medium.com/max/1282/1*ecMIFT0gDLcLRD1y5q8_Tg.png https://miro.medium.com/max/1282/1*ecMIFT0gDLcLRD1y5q8_Tg.png
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.