django-herokuをインストール
[Python] プログラム初心者のためのWebアプリ簡単作成法
https://qiita.com/okoppe8/items/4cc0f87ea933749f5a49
上記を参考にHerokuへのデプロイを試していたところ、 django-heroku
インストール時にハマりました。
pip install gunicorn django-heroku
エラー
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
解決策
以下で解決しました。
brew reinstall python
参考
SSL module in Python is not available (on OSX)
https://stackoverflow.com/questions/58280484/ssl-module-in-python-is-not-available-on-osx