简体   繁体   中英

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."

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 . 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.

Once you've installed Anaconda, run the Anaconda prompt, create a new environment (called here tfenv ), and activate it:

>conda create -n tfenv
>conda activate tfenv

Then, you can install 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. It worked for me, I had python 3.11 is I installed python 3.9 and it worked.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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