Search code examples
pythonherokupypi

Heroku pip cannot find my recently published package in pypi


I recently uploaded my Python package to PyPI. I also developed a web app depending on that package. I want to deploy my web app to Heroku. However, Heroku cannot find my package using pip.

It throws

ERROR: Could not find a version that satisfies the requirement lgp==0.0.2 (from versions: none)    
ERROR: No matching distribution found for lgp==0.0.2 

I tried pip install my package on my local machine and it works fine. What's the possible reason for the failure on Heroku?

Thanks in advance.


Solution

  • Your package requires Python >=3.7, make sure you are using a runtime with Python 3.7 or greater in it.