0

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

SamiDev
  • 1
  • 3

4 Answers4

0

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

  • Hi, so I'm using VS Code as an IDE so if you can tell me how to install the Discord package in it that would be great! – SamiDev Feb 18 '22 at 16:12
  • Go to this question it has a answer for your problem: https://stackoverflow.com/questions/65228199/how-do-you-install-external-python-libraries-in-vs-code –  Feb 18 '22 at 18:03
  • No sorry it didn't help me, because the guy says that he needs to install the module using pip but I can't use pip since as I said the program needs admin rights but this PC doesn't have admin rights to launch pip – SamiDev Feb 20 '22 at 18:21
0
  1. Go to https://github.com/Rapptz/discord.py and download it as a zip (Code -> Download ZIP)

enter image description here

  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
Łukasz Kwieciński
  • 14,992
  • 4
  • 21
  • 39
0

You can try using

py -m pip install discord
vimuth
  • 5,064
  • 33
  • 79
  • 116
-1

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

takudzw_M
  • 186
  • 1
  • 5