pip帮助安装

Pip help install

我正在尝试在 ubuntu 上安装 tensorflow 来自:https://www.tensorflow.org/get_started/os_setup#virtualenv_installation 但是当我走到这一步时:pip install --upgrade $ TF_BINARY_URL 我收到此错误:

You must give at least one requirement to install (see "pip help install").

请帮忙

那是因为环境变量$TF_BINARY_URL没有设置。您必须先将其导出,如您提供的文档中所述。

# Ubuntu/Linux 64-bit, CPU only, Python 2.7
(tensorflow)$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.12.1-cp27-none-linux_x86_64.whl

(或特定于 arch/platform 的任何其他 url)