0

I built a app using dash framework and am attempting to deploy the app to heroku. My requirements.txt looks something like this:

   pandas
   dash
   Flask
   sklearn
   ... 
   ...
   ...
   sympy
   statsmodel

I get an error when installing sympy and/or statsmodel

Collecting sympy
remote:          Downloading sympy-1.7.1-py3-none-any.whl (5.9 MB)
remote:        ERROR: Could not find a version that satisfies the requirement statsmodel (from -r /tmp/build_800c2283/requirements.txt (line 18)) (from versions: none)
remote:        ERROR: No matching distribution found for statsmodel (from -r /tmp/build_800c2283/requirements.txt (line 18))
remote:  !     Push rejected, failed to compile Python app.
remote: 

Based on the documentation, packages with unsupported dependencies that do not provide many wheels will not install. Is there a workaround to this?

https://devcenter.heroku.com/articles/python-pip

2
  • Try removing statsmodel from requirements.txt Commented Feb 11, 2021 at 6:00
  • Don't create your requirements.txt manually. Use the command python -m pip freeze > requirements.txt. That will write the file automatically with you with the library versions you used. Commented Feb 11, 2021 at 8:36

1 Answer 1

1

The problem is package name statsmodel.

ERROR: Could not find a version that satisfies the requirement statsmodel

The package is called statsmodels. You forgot to end with s. See installations documentation

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.