Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to install tensorflow for Python 2.7 in windows 7

I am aware that tensorflow is available for Python 3.5 and above but is there any possibility that tensorflow can be installed for python 2.7 using cmd in windows 7?

like image 509
TeeKay Avatar asked Nov 22 '25 16:11

TeeKay


1 Answers

Yes, but you have to do quite some work. Specifically you need to build tensorflow yourself and Installing TensorFlow from Sources states:

We don't officially support building TensorFlow on Windows; however, you may try to build TensorFlow on Windows if you don't mind using the highly experimental Bazel on Windows or TensorFlow CMake build.

I would highly recommend you try to use python 3.5 instead if at all possible. If you use conda, you could create a new conda environment with

conda create -n tensorflow python=3.5 

and install tensorflow inside that environment using

activate tensorflow
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.2.1-cp35-cp35m-win_amd64.whl
like image 148
Jonas Adler Avatar answered Nov 25 '25 09:11

Jonas Adler



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!