【发布时间】:2020-03-22 02:10:23
【问题描述】:
我使用 tf 为 django 工作了 pipenv 锁,但它不会继续安装在 heroku 服务器上。
An error occurred while installing tensorflow==2.0.0! Will try again.
我希望服务器可以安装 2.0 tensorflow,但它失败了并且没有事先帮助。
dj-database-url = "==0.5.0"
django-storages = "==1.7.1"
django = "==2.1.5"
gunicorn = "==19.9.0"
psycopg2-binary = "==2.7.6.1"
psycopg2 = "==2.7.6.1"
markdownify = "==0.4.1"
numpy = "==1.16.2"
pipenv = "*"
regex = "==2017.4.5"
tensorboard = "*"
tb-nightly = "==1.14.0a20190301"
tf-estimator-nightly = "==1.14.0.dev2019030115"
tensorflow = "*"
tensorflow-estimator = "*"
Keras-Applications = "*"
Keras-Preprocessing = "*"
本地机器安装tensorflow到2.0.0 但是heroku机器需要2.0.0a0或者b0或者b1,不会在本地安装。
pipenv install tensorflow -v 提出:
requires absl-py>=0.7.0, astor>=0.6.0, gast==0.2.2, google-pasta>=0.1.6, grpcio>=1.8.6, keras-applications>=1.0.8, keras-preprocessing>=1.0.5, numpy<2.0,>=1.16.0, opt-einsum>=2.3.2, protobuf>=3.6.1, six>=1.10.0, tensorboard<2.1.0,>=2.0.0, tensorflow-estimator<2.1.0,>=2.0.0, termcolor>=1.1.0, wheel>=0.26, wrapt>=1.11.1
这适合已安装的软件包,但设置为 2.0.0,而不是 a0、b0 或 b1。
Could not find a version that satisfies the requirement tensorflow==2.0.0 (from -r /tmp/pipenv-0_4yw8_o-requirements/pipenv-d2wfuv4u-requirement.txt (line 1)) (from versions: 0.12.1, 1.0.0, 1.0.1, 1.1.0rc0, 1.1.0rc1, 1.1.0rc2, 1.1.0, 1.2.0rc0, 1.2.0rc1, 1.2.0rc2, 1.2.0, 1.2.1, 1.3.0rc0, 1.3.0rc1, 1.3.0rc2, 1.3.0, 1.4.0rc0, 1.4.0rc1, 1.4.0, 1.4.1, 1.5.0rc0, 1.5.0rc1, 1.5.0, 1.5.1, 1.6.0rc0, 1.6.0rc1, 1.6.0, 1.7.0rc0, 1.7.0rc1, 1.7.0, 1.7.1, 1.8.0rc0, 1.8.0rc1, 1.8.0, 1.9.0rc0, 1.9.0rc1, 1.9.0rc2, 1.9.0, 1.10.0rc0, 1.10.0rc1, 1.10.0, 1.10.1, 1.11.0rc0, 1.11.0rc1, 1.11.0rc2, 1.11.0, 1.12.0rc0, 1.12.0rc1, 1.12.0rc2, 1.12.0, 1.12.2, 1.12.3, 1.13.0rc0, 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.13.2, 1.14.0rc0, 1.14.0rc1, 1.14.0, 2.0.0a0, 2.0.0b0, 2.0.0b1)
需要的包是:
absl-py = "==0.7.1"
astor = "==0.7.1"
gast = "==0.2.2"
protobuf = "*"
six = "==1.12.0"
termcolor = "==1.1.0"
【问题讨论】:
-
如果您还没有看到任何错误,请在安装时尝试增加 pipenv 详细程度 (
-v)。 -
是
pipenv lock -v还是pipenv install tensorflow -v? -
pipenv --help给了Usage: pipenv [OPTIONS] COMMAND [ARGS]...,所以我试试pipenv -v install,(if no packages are given), installs all packages from Pipfile. -
这两个选项都不起作用
标签: python tensorflow