Forums

Can't install discord-interactions

Excuse the possibly simple question but I'm trying to install the package discord-interactions - https://discord-py-slash-command.readthedocs.io/en/latest/quickstart.html#installing

I opened up a python 3.6 bash, and entered the following:

pip3.6 install --user -U discord-py-interactions

It installs, but when I try to import interactions, it returns an error:

ModuleNotFoundError: No module named 'interactions'

Looking closer, it seems to be installing version 3.0.2 when the most recent version is 4.3.1. I think that may be part of the issue but I'm not sure. How can I install the latest version? Is there a manual way to install it?

See https://help.pythonanywhere.com/pages/InstallingNewModules/

That's the page I used as a guide to help me install it. The issue seems to be that version 3.0.2 is what is installing rather than the newest 4.3.1. I tried specifying the version both using pip3.6 and in the virtual environment and I got this:

(my-virtualenv) 12:12 ~ $ pip install discord-py-interactions==4.3.1                                                                                                                                             
Looking in links: /usr/share/pip-wheels
ERROR: Could not find a version that satisfies the requirement discord-py-interactions==4.3.1 (from versions: 3.0.2)
ERROR: No matching distribution found for discord-py-interactions==4.3.1

Is there a way to update the version that it's trying to install?

My guess would be that the newer version of discord-py-interactions does not support Python 3.6. Check the documentation of the library to make sure that you are using a version of Python that is supported.

Thanks Glenn. I think you're correct, you may need python 3.9 to run it. Thanks for your help.