简体   繁体   English

TensorFlow pip 安装不工作 Windows 10

[英]TensorFlow pip install not working on Windows 10

I have spent a lot of time tying to install tensorflow for windows. I keep getting errors like "not supported."我花了很多时间为 windows 安装 tensorflow。我一直收到“不支持”之类的错误。

I have tried the commands:我已经尝试过命令:

pip install tensorflow

and

pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl

Note that TensorFlow needs x64 Windows and that Python 3.5 and higher go with pip3 instead of pip . 请注意,TensorFlow需要x64 Windows,并且Python 3.5及更高版本使用pip3而不是pip Still, there's a glitch with the installation script; 尽管如此,安装脚本还是有毛病。 I ran into the same problem and resolved it by using Anaconda , an alternative package manager for R and Python. 我遇到了同样的问题,并使用Anaconda解决了该问题, Anaconda是R和Python的替代程序包管理器。

Once you've installed Anaconda, run the Anaconda prompt, create a new environment (called here tfenv ), and activate it: 安装Anaconda后,运行Anaconda提示符,创建一个新环境(在此处称为tfenv )并激活它:

>conda create -n tfenv
>conda activate tfenv

Then, you can install TensorFlow 然后,您可以安装TensorFlow

>conda install tensorflow

I found that tensorflow works with python 3.7-3.10 so if you have a higher version of python, consider installing an older one.我发现 tensorflow 可与 python 3.7-3.10 配合使用,因此如果您有更高版本的 python,请考虑安装较旧的版本。 It worked for me, I had python 3.11 is I installed python 3.9 and it worked.它对我有用,我有 python 3.11,我安装了 python 3.9 并且它有效。

to install tensor flow you need to do this: 要安装张量流,您需要执行以下操作:

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

it seems to work, and has a different link to yours. 它似乎有效,并且与您的链接不同。 I think your link may be for a different system. 我认为您的链接可能适用于其他系统。

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

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