前提・実現したいこと
諸先輩方
いつもお世話になっております。
わたしはノンプログラマーなのですがPythonを勉強しようと思い
【Django Girls Tutorial】
https://djangogirlsjapan.gitbooks.io/workshop_tutorialjp/content/
を進めているのですがHerokuへのデブロイで詰まってしまい助けていただきたいです。
かれこれ4時間ほど苦戦しております。
発生している問題・エラーメッセージ
$ git push heroku master Counting objects: 29, done. Delta compression using up to 8 threads. Compressing objects: 100% (26/26), done. Writing objects: 100% (29/29), 5.47 KiB | 0 bytes/s, done. Total 29 (delta 6), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Python app detected remote: ! The latest version of Python 3.6 is python-3.6.6 (you are using python-3.5.2, which is unsupported). remote: ! We recommend upgrading by specifying the latest version (python-3.6.6). remote: Learn More: https://devcenter.heroku.com/articles/python-runtimes remote: -----> Installing python-3.5.2 remote: -----> Installing pip remote: -----> Installing requirements with pip remote: Collecting dj-database-url==0.5.0 (from -r /tmp/build_a4a7ce713af81a683c63a334f27375b3/requirements.txt (line 1)) remote: Downloading https://files.pythonhosted.org/packages/d4/a6/4b8578c1848690d0c307c7c0596af2077536c9ef2a04d42b00fabaa7e49d/dj_database_url-0.5.0-py2.py3-none-any.whl remote: Collecting Django==1.11.14 (from -r /tmp/build_a4a7ce713af81a683c63a334f27375b3/requirements.txt (line 2)) remote: Downloading https://files.pythonhosted.org/packages/bf/e0/e659df5b5b82299fffd8b3df2910c99351b9308b8f45f5702cc4cdf946e9/Django-1.11.14-py2.py3-none-any.whl (7.0MB) remote: Collecting gunicorn==19.9.0 (from -r /tmp/build_a4a7ce713af81a683c63a334f27375b3/requirements.txt (line 3)) remote: Downloading https://files.pythonhosted.org/packages/8c/da/b8dd8deb741bff556db53902d4706774c8e1e67265f69528c14c003644e6/gunicorn-19.9.0-py2.py3-none-any.whl (112kB) remote: Collecting pkg-resources==0.0.0 (from -r /tmp/build_a4a7ce713af81a683c63a334f27375b3/requirements.txt (line 4)) remote: Could not find a version that satisfies the requirement pkg-resources==0.0.0 (from -r /tmp/build_a4a7ce713af81a683c63a334f27375b3/requirements.txt (line 4)) (from versions: ) remote: No matching distribution found for pkg-resources==0.0.0 (from -r /tmp/build_a4a7ce713af81a683c63a334f27375b3/requirements.txt (line 4)) remote: ! Push rejected, failed to compile Python app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to amano-jango-blog. remote: To https://git.heroku.com/amano-jango-blog.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/amano-jango-blog.git'
runtime.txtの内容
python-3.5.2
requirements.txt の内容
dj-database-url==0.5.0
Django==1.11.14
gunicorn==19.9.0
pkg-resources==0.0.0
psycopg2==2.7.5
pytz==2018.5
whitenoise==3.3.1
試したこと
・psycopg2のバージョンをあげる

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/07/25 11:18 編集
2018/07/25 11:23