I’ve finally added buttons to my discord bot. I’ve used the command pip install --upgrade discord.py in my shell and all was working fine. Until I restarted my bot to realize that I had to re do the whole command. Every time my bot restarts the same thing happens. Its like it uninstalls every time. Can anyone help me fix this?
Welcome to the forums! Enlighten a Python noob, what does this command do?
Does exactly what you’d expect it to.
You need to use Replit’s package manager for the changes to persist on Replit.
2 Likes
Oh, I know what pip install does. I just wanted to know what the --upgrade part did.
1 Like
I tried that too to install jsf. I am still having error.
try pip uninstall discord.py then try installing the latest version
Actual behaviour The typing_extensions dependency on the replit python package has a version constraint ^3.7.4 currently, but many packages now depend on ^4, causing a version conflict which has been reported in the discord help channels numerous times. Also, the terminal is cleared right after the packages fail to install, so it’ll cause confusing import errors later and the user may not see the actual error. This is what happened in Why do i get the error 'Only one listener allowed at a time…
Workaround: 16 th time telling someone to run in shell:
poetry add git+https://github.com/noneofyourbusiness1415252/replit-py
But unfortunately the replit package is not maintained. @BD103 ?
Pulling from an older post of @UMARismyname ’s that seems like it will fix this issue.
1 Like