简体   繁体   English

在 windows python 3.6 上安装 tensorflow

[英]Install tensorflow on windows python 3.6

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

This message is shown when I try to pip install .当我尝试pip install时会显示此消息。 I have tried it with python 3.7 when it didn't work.我用 python 3.7 试过它不起作用。 I also tried it with 3.6 and I still tensorflow can't install it.我也用 3.6 尝试过,但仍然无法安装 tensorflow。

Try using Christoph Gohlke's packages: https://www.lfd.uci.edu/~gohlke/pythonlibs/#tensorflow尝试使用 Christoph Gohlke 的软件包: https ://www.lfd.uci.edu/~gohlke/pythonlibs/#tensorflow

Download the package for Python 3.6, then use pip install on the package:下载 Python 3.6 的包,然后在包上使用pip install

pip install tensorflow‑1.9.0‑cp36‑cp36m‑win_amd64.whl

Note that you will need the NumPy + MKL packages and the Protobuf packages that can be downloaded from Christoph Gohlke's website as well.请注意,您还需要可从 Christoph Gohlke 的网站下载的 NumPy + MKL 包和 Protobuf 包。

Make sure you choose the Python 3.6 version.确保选择 Python 3.6 版本。 You can determine this by looking at the numbers after the cp in the filename (ie cp36 ).... so what you'll actually need to do is download the three wheels, then install them in the following order:您可以通过查看文件名中cp后面的数字(即cp36 )来确定这一点……所以您实际上需要做的是下载三个轮子,然后按以下顺序安装它们:

pip install numpy‑1.16.3+mkl‑cp36‑cp36m‑win_amd64.whl
pip install protobuf‑3.7.1‑cp36‑cp36m‑win_amd64.whl
pip install tensorflow‑1.9.0‑cp36‑cp36m‑win_amd64.whl

Note: I'm assuming you're using a 64-bit version of Windows which is the default type for many Windows installations.注意:我假设您使用的是 64 位版本的 Windows,这是许多 Windows 安装的默认类型。

尝试使用以下命令安装它

python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.13.1-py3-none-any.whl

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM