Python discord bot, cannot find the packages version on render

I am trying to run a discord bot build with python3. However, when it try to install the requirements packages, it always face an error with finding the correct version for discord.py

Below are the logs it provided

Mar 25 02:27:22 PM  ERROR: Could not find a version that satisfies the requirement discord.py==2.2.2 (from -r requirements.txt (line 10)) (from versions: 0.1.0, 0.2.0, 0.2.1, 0.3.0, 0.3.1, 0.4.0, 0.4.1, 0.5.0, 0.5.1, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.7.0, 0.8.0, 0.9.0, 0.9.1, 0.9.2, 0.10.0, 0.11.0, 0.12.0, 0.13.0, 0.14.0, 0.14.1, 0.14.2, 0.14.3, 0.15.0, 0.15.1, 0.16.0, 0.16.1, 0.16.2, 0.16.3, 0.16.4, 0.16.5, 0.16.6, 0.16.7, 0.16.8, 0.16.9, 0.16.10, 0.16.11, 0.16.12, 1.0.0, 1.0.1, 1.1.0, 1.1.1, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.4.0, 1.4.1, 1.4.2, 1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1, 1.7.2, 1.7.3)
Mar 25 02:27:22 PM  ERROR: No matching distribution found for discord.py==2.2.2 (from -r requirements.txt (line 10))

However, you can clearly find that the version 2.2.2 is listed on pypi correctly. Does anyone know how to solve this issue?

That sounds like you aren’t using a newer version of Python - see Specifying a Python Version | Render for details

1 Like

Thank for the solution, that’s probably the case since I’m using python 3.9 for my project but render automatically applied python 3.7.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.