在 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
当我尝试 pip install
时显示此消息。我用 python 3.7 试过了,但还是不行。我也用3.6试过了,tensorflow还是安装不上
尝试使用以下命令安装它
python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.13.1-py3-none-any.whl
尝试使用 Christoph Gohlke 的软件包:https://www.lfd.uci.edu/~gohlke/pythonlibs/#tensorflow
下载 Python 3.6 的软件包,然后在软件包上使用 pip install
:
pip install tensorflow‑1.9.0‑cp36‑cp36m‑win_amd64.whl
请注意,您还需要 NumPy + MKL 包和 Protobuf 包,这些包也可以从 Christoph Gohlke 的网站下载。
- NumPy + MKL:https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
- Protobuf:https://www.lfd.uci.edu/~gohlke/pythonlibs/#protobuf
确保选择 Python 3.6 版本。您可以通过查看文件名中 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
注意: 我假设您使用的是 64 位版本的 Windows,这是许多 Windows 安装的默认类型。
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow
当我尝试 pip install
时显示此消息。我用 python 3.7 试过了,但还是不行。我也用3.6试过了,tensorflow还是安装不上
尝试使用以下命令安装它
python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.13.1-py3-none-any.whl
尝试使用 Christoph Gohlke 的软件包:https://www.lfd.uci.edu/~gohlke/pythonlibs/#tensorflow
下载 Python 3.6 的软件包,然后在软件包上使用 pip install
:
pip install tensorflow‑1.9.0‑cp36‑cp36m‑win_amd64.whl
请注意,您还需要 NumPy + MKL 包和 Protobuf 包,这些包也可以从 Christoph Gohlke 的网站下载。
- NumPy + MKL:https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
- Protobuf:https://www.lfd.uci.edu/~gohlke/pythonlibs/#protobuf
确保选择 Python 3.6 版本。您可以通过查看文件名中 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
注意: 我假设您使用的是 64 位版本的 Windows,这是许多 Windows 安装的默认类型。