点安装Tensorflow失败

时间:2019-02-23 16:30:06

标签: python tensorflow object-detection-api

我正在尝试使用pip命令在python中安装tensorflow SELECT table_name FROM user_tables; SELECT sequence_name FROM user_sequences; ,但很遗憾,我收到以下错误消息: pip install tensorflow 我也尝试使用以下命令安装tensorflow Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow,但再次遇到以下错误: pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl。另外,我已经针对Python版本3.5x 3.6x和显然的3.7检查了相同的命令,但是这些命令不起作用。

5 个答案:

答案 0 :(得分:2)

我认为Tensorflow当前不支持Python 3.7,如果当前安装了Python 3.7,则可能是错误消息Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow

的原因

您可以降级到Python 3.6.x,然后使用pip安装tensorflow。

答案 1 :(得分:1)

确定要正确使用大写/拼写吗?命令提示符区分大小写。我使用的输入是: cd C:\path\to\the\directory\python\is\installed\in(cd,空格,目录路径)然后: python -m pip install TensorFlow 此后应该工作。

答案 2 :(得分:1)

我在Windows 10上遇到了同样的问题,我发现tensorflow可用于python x64安装,而我使用的命令如下:

  

pip install --upgrade tf

答案 3 :(得分:1)

到目前为止,Tensorflow可以使用64位。

如果您想知道从哪里可以得到: https://www.python.org/downloads/windows/

选择x84-64版本(64位)

答案 4 :(得分:0)

在命令行上键入(如果使用的是GPU版本)

pip install -U --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.0.0-cp35-cp35m-win_amd64.whl

或者如果您仅使用CPU

pip install -U --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.0-cp35-cp35m-win_amd64.whl