Ask coding questions

← Back to all posts
How to install Python Packages from GitHub
Anonymous19

Hi, I'm currently working on a discord bot project which requires the most updated python package of discord.py which is not currently available on PyPi but is available in the GitHub repository. I've tried installing this package through pip with the syntax:
pip install -U git+https://github.com/Rapptz/discord.py
but I get a generic Syntax Error.
I have also tried following this post: Using Pip On Replit
with no luck. I currently can't seem to find any other documentation on the matter so I would be extremely grateful for any help. (sorry if i've formatted this post wrong or missed anything its my first one :()
Thank you in advance,
Arav

Answered by ch1ck3n [earned 5 cycles]
View Answer
Voters
Anonymous19
Comments
hotnewtop
ch1ck3n

did you make sure you ran pip install -U git+https://github.com/Rapptz/discord.py in the shell, not the console

Anonymous19

thank you so much i'm so dumb @ch1ck3n

WillingDude

wouldnt you have to do this everytime you start the repl?

ch1ck3n