2017-02-19 28 views
3

herokuクラウドプラットフォームを使用してdjangoプロジェクトを展開しています。 requirements.txtファイルに依存関係を追加しました。私は、DjangoのV 1.10とPython 2.7を使用していますHerokuで要件tensorflow == 1.0.0を満たすバージョンが見つかりません

Collecting tensorflow==1.0.0 (from -r /tmp/build_bc8be989466414998410d3ef4c97a115/requirements.txt (line 17)) 
remote:   Could not find a version that satisfies the requirement tensorflow==1.0.0 (from -r /tmp/build_bc8be989466414998410d3ef4c97a115/requirements.txt (line 17)) (from versions:) 
remote:  No matching distribution found for tensorflow==1.0.0 (from -r /tmp/build_bc8be989466414998410d3ef4c97a115/requirements.txt (line 17)) 
remote: !  Push rejected, failed to compile Python app. 
remote: 
remote: !  Push failed 
remote: Verifying deploy.... 
remote: 
remote: ! Push rejected to what-the-image. 
remote: 

:私はHerokuのマスターにプッシュする場合しかし、私は次のエラーを取得します。どこが間違っていますか?

答えて

3

wheelを使用して、HerokuにTensorflowをインストールすることができます。単にhttps://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.0.0-cp27-none-linux_x86_64.whl

Wheelseggsであなたのrequirements.txtにtensorflow==1.0.0ラインを交換

は、Pythonコードのフォーマットをパッケージ化しています。 Wheelsは旧式の卵形を置き換えるものであり、一般的にコンパイラを必要としないため汎用性が非常に優れています(HerokuのようなPaaS、MicrosoftのAzureに展開する場合は非常に便利です)。

ホイールに関する注意点は、naming conventionです。これは、使用するアーキテクチャとPythonのバージョンを反映しています。あなたのシステムがサポートしている車輪のタイプを簡単に見つける方法は次の通りです:

import pip 
print(pip.pep425tags.get_supported()) 
+0

ありがとうございます。それは働いた:) – Deesha

+0

Dafuq?これで何が起こっているのか説明できますか?また、感謝、それは働いた:-) – LoremIpsum

+0

答えに情報を追加しました。あなたは卵と車輪を比較することができる言語を愛する必要があります:) –

関連する問題