【问题标题】:Error when Installing TensorFlow with PipEnv使用 PipEnv 安装 TensorFlow 时出错
【发布时间】:2019-01-16 18:34:04
【问题描述】:

我正在尝试使用 pipenv 安装 TensorFlow,但是安装总是失败。

我在 Windows 7 上使用命令提示符。

我尝试了以下 Pipfile 以及手动指定 tensorflow = "==1.11.0",但似乎没有任何效果。

这是我当前的 Pipfile:

[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]
requests = "*"
pandas = "*"
scipy = "*"
seaborn = "*"
scikit-learn = "*"
tensorflow = "*"

[requires]
python_version = "3.6"

我收到的错误(运行pipenv install 后)是:

Installing dependencies from Pipfile.lock (a4b797)...
An error occurred while installing tensorflow==1.12.0 --hash=.....
.....! Will try again.

.....

[pipenv.exceptions.InstallError]: ['Could not find a version that satisfies the requirement tensorflow==1.12.0 .....']
ERROR: ERROR: Package installation failed...

如果有人可以帮助我,那就太棒了!

【问题讨论】:

    标签: python-3.x tensorflow pipenv


    【解决方案1】:

    问题是我安装了 32 位版本的 Python。 TensorFlow 需要 64 位版本。

    重新安装后,我还需要通过pipenv --rm删除旧的pipenv。

    【讨论】:

      猜你喜欢
      • 2019-10-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-18
      • 1970-01-01
      • 1970-01-01
      • 2016-03-19
      • 1970-01-01
      相关资源
      最近更新 更多