DjangoGirlsJapanのガイドラインに従ってdjangoアプリを作っていますが、デプロイのところでエラーになります。
$ git push heroku master
と入力してデプロイしようとすると、
remote: Could not find a version that satisfies the requirement command-not-found==0.3 (from -r requirements.txt (line 2)) (from versions: )
というエラーが出ます。
この「command-not-found==0.3」というパッケージですが、手動でインストールしようとしてもそのようなバージョンはないといわれます。
$ pip install command-not-found==0.3 Collecting command-not-found==0.3 Could not find a version that satisfies the requirement command-not-found==0.3 (from versions: ) No matching distribution found for command-not-found==0.3
しかし、pip freezeの結果を出力したrequirements.txtには、以下のようにcommand-not-foundパッケージが記載されています。
chardet==2.3.0 command-not-found==0.3 dj-database-url==0.4.1 Django==1.10.4 gunicorn==19.6.0 language-selector==0.1 pycurl==7.43.0 pygobject==3.20.0 python-apt==1.1.0b1 python-debian==0.1.27 python-systemd==231 requests==2.9.1 six==1.10.0 ssh-import-id==5.5 ufw==0.35 unattended-upgrades==0.1 urllib3==1.13.1 whitenoise==3.2.2 psycopg2==2.5.4
この場合どう対応すればよいでしょうか?
なお、プロジェクトのツリーは以下のようになっています。ガイドラインと唯一違う点は、virtualenvを作っていないことです。
djangogirls ├── Procfile ├── blog │ ├── __init__.py │ ├── __pycache__ │ │ ├── __init__.cpython-35.pyc │ │ ├── admin.cpython-35.pyc │ │ └── models.cpython-35.pyc │ ├── admin.py │ ├── apps.py │ ├── migrations │ │ ├── 0001_initial.py │ │ ├── __init__.py │ │ └── __pycache__ │ │ ├── 0001_initial.cpython-35.pyc │ │ └── __init__.cpython-35.pyc │ ├── models.py │ ├── tests.py │ └── views.py ├── db.sqlite3 ├── manage.py ├── mysite │ ├── __init__.py │ ├── __pycache__ │ │ ├── __init__.cpython-35.pyc │ │ ├── settings.cpython-35.pyc │ │ └── urls.cpython-35.pyc │ ├── local_settings.py │ ├── settings.py │ ├── urls.py │ └── wsgi.py ├── requirements.txt └── runtime.txt
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。