Windows中的Tensorflow安装问题

t3psigkw  于 2022-11-16  发布在  Windows
关注(0)|答案(3)|浏览(217)

我查阅了官方文档,从https://www.tensorflow.org/install/install_windows安装tensorflow,但我总是得到这个错误。

tensorflow-1.0.1-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform.
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

用于执行
pip3 install tensorflow-1.0.1-cp35-cp35m-win_amd64.whl

pip install tensorflow-1.0.1-cp35-cp35m-win_amd64.whl
我确实将pip更新到了9.1,但仍然
"You are using pip version 8.1.1, however version 9.0.1 is available."警告。
我有windows 7 64位与Python 2.7和3.5都在64位。
另外,我已经推荐了Installing tensorflow on windowstensorflow installation problems
但他们无济于事。
P.P.S.:-我执行了pep 425标签命令& I这些库:-

[('cp35', 'none', 'win_amd64'), ('py3', 'none', 'win_amd64'), ('cp35', 'none',
any'), ('cp3', 'none', 'any'), ('cp34', 'none', 'any'), ('cp33', 'none', 'any')
 ('cp32', 'none', 'any'), ('cp31', 'none', 'any'), ('cp30', 'none', 'any'), ('py
35', 'none', 'any'), ('py3', 'none', 'any'), ('py34', 'none', 'any'), ('py33',
none', 'any'), ('py32', 'none', 'any'), ('py31', 'none', 'any'), ('py30', 'none
, 'any')]
9gm1akwq

9gm1akwq1#

The error itself is that you are installing a non supported wheel. The other logs about the pip version are just warnings that won't necessarily prevent TF installation in this case.
The problem is most likely due a conflict with your two Python installations, as TensorFlow on Windows is only compatible with Python 3.5 64-bit.
If are sure this issue of both versions is isolated and not affecting the installation try doing with the PYPI TensorFlow packages through pip install tensorflow and tensorflow-gpu for enabled GPU support. If it's a problem with the URL wheel it will yield a different result.
As a last resource download the last stable nightly build and install with it but my guess is there is there is a conflict between TensorFlow and your two different versions Python installations.

yws3nbqq

yws3nbqq2#

As you are using
pip install tensorflow-1.0.1-cp35-cp35m-win_amd64.whl
make sure of the following
You have python version 3.5 64 bit installed.
python --version
Pip supports all the tags in wheel file name. To check this run python shell and then import pip
import pip
Then run the following command
pip.pep425tags.get_supported()
Now output should contain cp35, cp35m, win_amd64, as these are the tags wheel in file name.
Your pip version does not support cp35m. You can either upgrade pip using
pip install --upgrade pip
If this does not work. Uninstall python and reinstall 3.5.2 (this worked for me).

35g0bw71

35g0bw713#

确保您使用的是64位架构(Python解释器和您使用的机器)。Tensorflow不支持32位架构。

相关问题