Installing tensorflow on windows

2019-06-24 00:45发布

I'm trying to install tensorflow on windows. I have python3 (3.5.2) and pip3 (9.0.1):

pip3 install --upgrade tensorflow

Collecting tensorflow

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

Found this issue here as well: tensorflow not found in pip but none of the solutions worked for me. Any ideas?

7条回答
何必那么认真
2楼-- · 2019-06-24 00:54

I have written a blog over this topic, you might find it interesting and helpful:

Mainly issue that people face is they install 32 bit python:

Solution as follows

Install Python 3.6 (Note down installation path, or simply custom install to C:\Python36) in your system - Make sure that Python is of "x64" architecture.

To check your python architecture

Import platform
platform.architecture()[0]

Link to download Python36 with 64 bit architecture : https://www.python.org/ftp/python/3.6.2/python-3.6.2-amd64.exe

For more info you can follow the this link https://tensorflowwindows.quora.com/

查看更多
萌系小妹纸
3楼-- · 2019-06-24 01:02

This is what worked for me. Currently, Tensorflow only works with 64-bit windows, not 32-bit. So, you could create a new 64-bit environment and install tensorflow in it:

set CONDA_FORCE_32BIT=
conda create --name name_of_your_created_environment python=3.5
activate name_of_your_created_environment
conda install -c conda-forge tensorflow

CONDA_FORCE_32BIT=1 sets to a 32-bit environment whilst CONDA_FORCE_32BIT= sets to a 64-bit environment.

查看更多
4楼-- · 2019-06-24 01:03

Just follow 3 steps: Install python 3.5.x version (64bit MUST) Install pip pip install tensorflow==2.0.0-alpha0

And you are good to go. Found this after struggling for days

查看更多
5楼-- · 2019-06-24 01:03

After spending hours I am able to fix TensorFlow installation issue on Windows. here is the summary https://stackoverflow.com/a/50475864/1996802

查看更多
beautiful°
6楼-- · 2019-06-24 01:14

Try the following at a Python command prompt:

import platform
platform.architecture()[0]

It should display '64bit' Just having an x86 version of Python isn't enough. I had the same problem. Thought I had a 64 bit installation but it turned out to be 32 bit.

BTW. it will also work fine with the Conda Python 3.6 distribution. And indeed use the distro from the Gohlke page as indicated by Guillaume Jacquenot.

查看更多
对你真心纯属浪费
7楼-- · 2019-06-24 01:17
 pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.0.0-py3-none-any.whl

try this one under your python environment

查看更多
登录 后发表回答