Solution for errors when deploying to Heroku

Install django-heroku

[Python] Easy way to create a web application for beginners https://qiita.com/okoppe8/items/4cc0f87ea933749f5a49

When I tried deploying to Heroku referring to the above, I got hooked when installing django-heroku.

pip install gunicorn django-heroku

error

Could not fetch URL https://pypi.org/simple/django-heroku/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/django-heroku/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement django-heroku (from versions: none)
ERROR: No matching distribution found for django-heroku

solution

I solved it below.

brew reinstall python

reference

SSL module in Python is not available (on OSX) https://stackoverflow.com/questions/58280484/ssl-module-in-python-is-not-available-on-osx

Recommended Posts

Solution for errors when deploying to Heroku
How to deal with errors when installing whitenoise and deploying to Heroku
What to do if package installation fails when deploying to heroku
Push rejected, failed to compile Go app. Error when deploying Go to Heroku
[Django] Error encountered when deploying heroku Part 2
[Django] Trouble encountered when deploying heroku Part 1
How to deal with errors when hitting pip ②
[Heroku] Memo for deploying Python apps using Heroku on Windows [Python]
Memo of deploying Django × Postgresql on Docker to Heroku
Solution if you crash when using selenium on heroku
[Pyxel] Solution for "failed to initialize SDL Audio in'Audio'"
Where to fix code when using plotly for free
Articles to see when installation for Python + OpenCV fails
When you want to plt.save in a for statement
Things to watch out for when migrating with Django
Template for Bottle when deploying with Github and Bitbucket
heroku memo (for myself)
Solution when you want to use cv_bridge with python3 (virtualenv)
When I try to push with heroku, it doesn't work
I get [Error 2055] when trying to connect to MySQL on Heroku
From environment construction to deployment for flask + Heroku with Docker
For beginners, how to deal with common errors in keras