TensorFlow Python 3.7

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/54239122/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 20:27:05  来源:igfitidea点击:

Tensorflow Python 3.7

pythontensorflowvirtualenvpython-venv

提问by Falco Peregrinus

Tensorflow version for Python 3.7

适用于 Python 3.7 的 Tensorflow 版本

Any news about tensorflow update for python 3.7. When I try to install tensorflow inside my venv like:

有关 python 3.7 的 tensorflow 更新的任何消息。当我尝试在我的 venv 中安装 tensorflow 时,例如:

pip install tensorflow

I got an error:

我有一个错误:

Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow

找不到满足张量流要求的版本(来自版本:)
没有找到与张量流匹配的分布

回答by Iman

Python 3.7 is now supported officially in TensorFlow 1.13.1:

TensorFlow 1.13.1 现在正式支持 Python 3.7:

Major Features and Improvements

  • TensorFlow Lite has moved from contrib to core. This means that Python modules are under tf.lite and source code is now under tensorflow/lite rather than tensorflow/contrib/lite.
  • TensorFlow GPU binaries are now built against CUDA 10 and TensorRT 5.0.
  • Support for Python3.7 on all operating systems.
  • Moved NCCL to core.

主要功能和改进

  • TensorFlow Lite 已从 contrib 转移到核心。这意味着 Python 模块在 tf.lite 下,源代码现在在 tensorflow/lite 而不是 tensorflow/contrib/lite 下。
  • TensorFlow GPU 二进制文件现在是针对 CUDA 10 和 TensorRT 5.0 构建的。
  • 在所有操作系统上支持 Python3.7。
  • 将 NCCL 移至核心。

source

来源

回答by Jordan Singer

You can see the status of the move to 3.7 here: https://github.com/tensorflow/tensorflow/issues/20517

您可以在此处查看迁移到 3.7 的状态:https: //github.com/tensorflow/tensorflow/issues/20517

回答by Mazlum Tanr?kulu

Firstly, you should download and set up the anaconda via anacondaand then open anaconda prompt and then follow these steps via TensorFlow. Fourthly, you should use 'pip install --ignore-installed --upgrade tensorflow==1.14.0' to install TensorFlow 1.14 on Conda Finally, you can use TensorFlow that is version 1.14 on python 3.7

首先,您应该通过anaconda下载并设置anaconda,然后打开 anaconda prompt,然后通过TensorFlow 执行这些步骤。第四,你应该使用' pip install --ignore-installed --upgrade tensorflow==1.14.0'在Conda上安装TensorFlow 1.14 最后,你可以在python 3.7上使用1.14版的TensorFlow

Have a Great Time.

玩得开心。

回答by Andrej Hatzi

You need to install a 64-bit version of Python and 3.7 does not work with tensorflow right now, I suggest a downgrade to 3.6.x

您需要安装 64 位版本的 Python 并且 3.7 现在不适用于 tensorflow,我建议降级到 3.6.x

回答by LaureLazard

Currently, for Windows users, pip install https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow_cpu-2.1.0-cp37-cp37m-win_amd64.whl
works with python_3.7(64-bit) and at least pip 19.0

目前,对于 Windows 用户, pip install https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow_cpu-2.1.0-cp37-cp37m-win_amd64.whl
使用 python_3.7(64 位)和至少 pip 19.0

回答by Nalinda Kulathunga

I tried many versions of the tensorflow with python 3.7 and failed. But finally tensorflow version 1.14 worked.

我用 python 3.7 尝试了许多版本的 tensorflow 并失败了。但最终 tensorflow 1.14 版成功了。

回答by Amol Shah

I was having the same problem as you- I was using Python 3.7 32-bit on Windows 10 64-bit machine. Since TensorFlow doesn't support 32-bit Pythonhence it said that "No matching distribution found for TensorFlow".

我和你有同样的问题 - 我在 Windows 10 64 位机器上使用 Python 3.7 32 位。由于TensorFlow 不支持 32 位 Python,因此它说“没有为 TensorFlow 找到匹配的分布”。

What worked for me is that I uninstalled the 32-bit Python version and installed the 64-bit Python version and pip install tensorflowworked immediately for downloading TensorFlow 2.2.0. Note that TensorFlow now supports till Python 3.8.

对我有用的是我卸载了 32 位 Python 版本并安装了 64 位 Python 版本并pip install tensorflow立即下载了 TensorFlow 2.2.0。请注意,TensorFlow 现在支持直到 Python 3.8。

Check if you have the 32-bit version of Python.To check whether you have the 32-bit version or 64-bit version, type IDLE in the search bar and you will be able to tell which version it is.

检查您是否拥有 32 位版本的 Python。要检查您是否拥有 32 位版本或 64 位版本,请在搜索栏中键入 IDLE,您将能够知道它是哪个版本。