Install tensorflow version 0.12 - tensorflow

How can i install the tensorflow 0.12 on windows x64 CPU.
If it is nowhere to be found
I tried to install through pip for python 3.6. Did not work out
pip install --user install tensorflow==0.12
Also tried this command with python 3.5, but nothing happened either

tensorflow 0.12.0 was only released for Python 3.5, not 3.6
tensorflow 0.12.1 was released for Python 3.6 but only on Linux and MacOS.
If you instist on installing version 0.12 your best bet is to try tensorflow 0.12.1 installed for Python 3.5:
py -3.5 -m pip install tensorflow==0.12.1

The only version 0.X available on pypi is the 0.12.1 for python 3.6, hence you can run
pip install tensorflow==0.12.1

Although the thread is about windows system but sharing it for the ubuntu users as well. That's how I downloaded it in my ubuntu 1804 system after following the comment of #phd,
created a conda enviornment using python 3.5
conda create -n tf012 python=3.5
and then installed TF 0.12 with pip install tensorflow==0.12

Related

Unable to install tensor flow with pip?

I just updated the latest MacOS and it wiped everything out.
I follow the steps from this website.
And I start reinstalling the tensorflow with pip3 and it's not installing anything.
I got this error from typing pip3 install --user --upgrade tensorflow .
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
FYI, my MacBook is 64-bit.
and
~ pip3 -V
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
pip 20.2.4 from /Users/zack/Library/Python/3.8/lib/python/site-packages/pip (python 3.8)
~ python3 -V
Python 3.8.2
I don't know what happened does anyone have any ideas.
According to this documentation https://www.tensorflow.org/install/pip#package-location
and your version of python you should run
python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-2.3.0-cp38-cp38-macosx_10_14_x86_64.whl
This is the 3rd step, so check if you got installed correctly the packages from steps 1 and 2
if pip is not up-to-date upgrade pip:
pip install --upgrade pip
then install tensorflow:
pip install tensorflow
for python 3.8 you need to install tensorflow 2.2 or later
system requirements of tensorflow:
Python 3.5–3.8
Python 3.8 support requires TensorFlow 2.2 or later.
pip 19.0 or later (requires manylinux2010 support)
Ubuntu 16.04 or later (64-bit)
macOS 10.12.6 (Sierra) or later (64-bit) (no GPU support)

Can I update TensorFlow in Anaconda?

I have Anaconda under Windows 8.1, Python 3.7 e TensorFlow 1.14. I tried some pip commands but the 1.14 is the only version installed of TensorFlow.
There are other ways to update, for example, version 1.5 ?
Thank a lot for any help!
Tensorflow 1.14 is the latest release for the time being. If you wanna install a specific version
conda install tensorflow=1.5.0
The problem is that tensorflow 1.5 is not compatible with Python 3.7 before 1.13.0rc1.
If you need version 1.5.0, you need to create a virtual environment with Python 3.6 using conda.
conda create -n py36 python=3.6
conda activate py36
conda install tensorflow=1.5.0
# you can also install tensorflow using pip
# choose the package manager you want
conda install tensorflow==1.5.0
Note: Don't use pip and conda to install pkg at the same time in one environment. Check Using Pip in a Conda Environment for more info.

Tensorflow installation error (could not find the version that satisfies the requirement tensorflow)

When I run :
pip install --upgrade tensorflow
This message pops up:
could not find the version that satisfies the requirement tensorflow
what should I do?
This is probably happening because you are using a pip version below 8.3.
In that case, you can install tensorflow using
For CPU version - pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.7.0-cp27-none-linux_x86_64.whl
For GPU version - pip install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.7.0-cp27-none-linux_x86_64.whl
These binaries are for version 1.7 and Python 2.7. You can get the latest wheel URLs from the official installation guide.
This worked for me
conda install pip
python -m pip install --upgrade pip
pip install --ignore-installed --upgrade tensorflow
This is what worked for me on Windows 10. 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
Note:
CONDA_FORCE_32BIT=1 sets to a 32-bit environment whilst CONDA_FORCE_32BIT= sets to a 64-bit environment.

Tensorflow Wheel Install not Supported

pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.1-cp35-cp35m-win_amd64.whl
In Anaconda3, Im trying to install the wheel but it is not working. On Windows. Using Python 3.6. There isnt a 3.6 wheel. I get this error:
tensorflow-0.12.1-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform.
Use an alternative tensorflow wheel for Python 3.6:
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.2.0rc2-cp36-cp36m-win_amd64.whl
UPDATE: TensorFlow from version 1.2 forward officially supports Python 3.6
There is no wheel for Python 3.6 for currently not being supported on Windows yet.
As you can see here, Python 3.6 support on Windows is a work in progress.
The only alternative to use TensorFlow on Windows with Python 3.6 is to build it from source.
I also encountered the same problem.
Before they update TensorFlow.
You can try to download the historical version of his 2016-9-27 on this website.
Just change your python version to 3.5 and then retry installing tensorflow. Tensorflow is only compatible with Python 3.5
conda install python=3.5
and then
pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.1-cp35-cp35m-win_amd64.whl

Pip only install cpu tensorflow of tensorflow 0.11

I previously installed tensorflow-gpu v 0.12 which worked fine, but for a code of a colleague I need v0.11. So I uninstalled tensorflow and tensorflow-gpu 0.12 and I tried to install v 0.11 with:
pip install https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0-cp27-none-linux_x86_64.whl
It successfully installs tensorflow, but not the gpu version, even though in the link above I took the gpu and not cpu version. Apparently, it doesn't matter if I choose cpu or gpu, it always only installs the cpu version.
Any idea how to fix this problem?
For tensorflow versions 0.11.x and below there isn't any tensorflow-gpu package in pip. The wheel corresponding to https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0-cp27-none-linux_x86_64.whl is the correct wheel with gpu support. If you install this wheel via pip, it'll say Installed tensorflow==0.11.0 but has support of CUDA-8. By downloading the individual wheels, for the cpu and gpu folder have a different md5 signature, hence they are different.
See here.
On running
pip install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0-cp27-none-linux_x86_64.whl
I can successfully install tensorflow v 0.11.
Thaks for #user8289596 answer the following command was useful for my case and i have successfully installed tensorflow 0.11
pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0rc0-cp27-none-linux_x86_64.whl
Note: I am using anaconda with python 2.7 and linux
For MacOS, Python 3, this worked for me:
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.11.0-py3-none-any.whl
then install with:
sudo pip3 install --upgrade $TF_BINARY_URL
Source also has instructions for Python 2 and 3 on a variety of Ubuntu/Linux and MacOS configurations.