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?
requirements.txtmanually. Use the commandpython -m pip freeze > requirements.txt. That will write the file automatically with you with the library versions you used.