LoginSignup
0
0

More than 3 years have passed since last update.

Herokuへのデプロイ時に発生したエラーの解決策

Posted at

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

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0