tensorflow 1.1 version download on Windows - tensorflow

I'd like to download 1.1.0 version tensorflow.
But they don't support that version with pip anymore.
How can I download it?
or is there any helpful things that can help to fix codes from low version to latest version?

Try to use
pip install tensorflow==<version>
If it doesn't work, please try the below
In https://pypi.org/project/tensorflow/1.1.0/ download .whl of the version you need and install it using pip.

Related

Installing tensorflow 1.9 on raspberry pi*addressed by modifying code to work with tf 2

updated code to work with tensorflow 2.4 to get around issue
I'm trying to install Tensorflow 1.9 on a Raspberry Pi as it is a requirement of the code I want to run. It installs fine on my Macbook using pip install tensorflow==1.9.0, but on the Pi I get the error:
Could not find a version that satisfies the requirement tensorflow==1.9.0 (from versions: 0.11.0, 1.11.0, 1.12.0, 1.13.1, 1.14.0)
No matching distribution found for tensorflow==1.9.0
I'm using a Conda (miniconda3) environment with Python 3.6.
Would using Ubuntu Desktop instead of Raspberry Pi OS work maybe? Or is there perhaps a way to build it from https://github.com/tensorflow/tensorflow/tree/r1.9?
You need to install python version 3.6 or other compatible versions in conda. Tensorflow does not work on versions higher than 3.8 and has identified issues with some other versions. I recommend using python 3.6 through conda. You will also probably need to move the
libcrypto-1_1-x64.dll
libssl-1_1-x64.dll
files from anaconda3\Library\bin to anaconda3/DLLs. You can find more details about this issue if you run into it here.
Hope this answers your question!
To install Tensorflow on Raspberry Pi run:
sudo apt install libatlas-base-dev
and then
pip3 install tensorflow
You can also compilte TensorflowLite and use if you wish. The compile TensorflowLite on RPi refer this link

How to install TensorFlow-gpu with cuda8.0?

I tried to install it according to the instructions on official website, which results in an ImportError when I import tensorflow:
ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory
I run the code cat /usr/local/cuda/version.txt, which shows that my cuda version is 8.0.61.
It seems that tensorflow is looking for cuda 9.0. I cannot upgrade the cuda as I am working on a shared gpu-server and I do not have the root authority.
Is there any way to make tensorflow work with cuda 8.0? Or any other way available?
Thanks!!
You'll need to install the version 1.4.1 for CUDA-8 as
pip install tensorflow-gpu==1.4.1
The latest (version 1.5) is for CUDA-9
I was facing the similar issue, until I found
https://www.tensorflow.org/install/install_sources#tested_source_configurations
check your installed cuda version and cudnn version and then find out which version of tensorflow-gpu is compatible with those using link mentioned above.
I had installed cuda 8 and cudnn v5.1, hence by checking above link tensorflow-gpu 1.2.0 was compatible and after installing that using
pip install tensorflow-gpu==1.2.0
It worked for me.

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

TensorFlow on Windows: "not a supported wheel on this platform" error

Was happy to know Tensorflow is made available for Windows and we don't have to use Docker.
I tried to install as per instructions but I get this error.
pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl
tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform.
What does that error mean?
I am running latest version of Python.
python --version
Python 3.5.2
This is most likely to be a 64-bit versus 32-bit issue. The pre-built TensorFlow pip package is 64-bit only, but the default version of Python 3.5.2 on Python.org is 32-bit. You can download the 64-bit release from here (select one of the "Windows x86-64" options).
It's only available for Python 3.5.x not 3.6.
You can quickly create a 3.5 environment with:
conda create -n tensorflow python=3.5
You must have a 3.5.x version of Python. The 3.6 version won't work.
If you have installed an Anaconda that contains Python 3.6, you need to downgrade its Python to 3.5.2.
Open the Anaconda Prompt as administrator, and run:
conda install python=3.5.2
After the installation is finished, you can follow the rest of the steps on tensorflow website.
Do you have Python and Anaconda installed? I had a similar issue until I uninstalled Anaconda and then the setup was fine.
I did the following steps and it worked.(Anaconda 4.4 x64)
1- Go to Windows 10 command prompt (right click and Run as admin)
2- if activated the path, you can run conda anywhere, if not, should go to .../anaconda3/scripts and run conda command from there and do the following (the main trick was to change 35 to 36)
1- conda -n tensorflow python=3.5
2- activate tensorflow
3- pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp36-cp36m-win_amd64.whl
issues fixed when i did the downgrading from 3.6 to 3.5 using the below
conda install python=3.5.2
There can be two reasons:
1) You are using 32-Bit python package. Tensorflow does not support 32 bit, only 64 fit.
Check in your system settings for this. If this is fine refer to second point..
2)You are using Python 3.7.
Python 3.7 isn't eventually officially supported by Python. It's still in beta testing,
and very much under active development.
Consider downgrading to a lower version of python. For now, stick with Python 3.6 or 3.5.

Protobuf issue during TensorFlow installation

I am trying to install the TensorFlow version 0.12 which requires Protobuf 3.1.0. I also use Anaconda in which repository there is only Protobuf 3.0.0. How can I upgrade Protobuf and install TensorFlow?
The official website prints out the requirement of 3.1.0 but at the same time it provides the wrong package 3.0.0.
https://www.tensorflow.org/versions/r0.12/get_started/os_setup.html#protobuf-library-related-issues
I just changed 3.0.0 to 3.1.0 in the URL, so
https://storage.googleapis.com/tensorflow/linux/cpu/protobuf-3.1.0-cp27-none-linux_x86_64.whl
instead of
https://storage.googleapis.com/tensorflow/linux/cpu/protobuf-3.0.0-cp27-none-linux_x86_64.whl
Seems to work just fine!
pip uninstall protobuf
pip install -U protobuf
worked for me.
If you are using poetry you can update protobuf with the right versions poetry add "probuf#>=3.9.2,<3.20" and then poetry add tensorflow.
The same with pip, upgrade protobuf to the specified version and then run pip install tensorflow.
One solution is to use pip install protobuf. One can also download the whl package from https://pypi.python.org/pypi/protobuf/3.1.0 and run
pip install protobuf-3.1.0-py2.py3-none-any.whl