简体   繁体   中英

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 I'm here to ask if anyone knows how can I install the Discord module in python without pip?

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.

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

  1. Go to https://github.com/Rapptz/discord.py and download it as a zip ( Code -> Download ZIP )

在此处输入图像描述

  1. Extract the zip file on your desktop
  2. Open the command propmt and CD into the discord.py-master directory (with cd Desktop\discord.py-master
  3. Run python setup.py install

You can try using py -m pip install discord .

Try this

set PATH=%PATH%;C:\Python34\Scripts

check this link for more 'pip' is not recognized as an internal or external command

If the above doesn't work

You have to download the discord.py module here. 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?

else

reinstall python and set the path like the below image

https://miro.medium.com/max/1282/1*ecMIFT0gDLcLRD1y5q8_Tg.png

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM