Unable to install Tensorflow 2.2.0 using pip - tensorflow

I am using ubuntu 20.04 with python 3.6.5 Anaconda. Previously, I have installed Tensorflow 2.0.0a0 and it was showing in both "pip list" and "conda list" but Now I want to install version 2.2.0 because I am unable to import "stellargraph" as it requires 2.1.x or higher version But when I uninstalled 2.0.0a0 completely and installing Tensorflow 2.2.0 previously, it was not showing in pip list or conda list and so, again when I am trying to install it on terminal using :
pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow_cpu-2.2.0-cp36-cp36m-manylinux2010_x86_64.whl
as mentioned here, I am getting this output on terminal.
But it is not installed as I can't see it in pip list and site-packages folder.
pip list
Can anyone please help me ?

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)

How to install tensorflow==2.3.0

I would like to test some function in the new tensorflow2.3 However, I am struggling with installation process.
I saw: How do I install the most recent Tensorflow (here: 2.2) on Windows when conda does not yet support it?
I executed: pip install --upgrade pip
I got:
ERROR: Could not find a version that satisfies the requirement tensorflow-cpu==2.3.0rc2 (from versions: 1.15.0rc0, 1.15.0rc1, 1.15.0rc2, 1.15.0rc3, 1.15.0, 2.1.0rc0, 2.1.0rc1, 2.1.0rc2, 2.1.0)
ERROR: No matching distribution found for tensorflow-cpu==2.3.0rc2
please make sure pip is pointing to pip3 because tensorflow requires python3
pip --version
pip3 install --upgrade tensorflow
I just ran into the same issue, but had to downgrade python from 3.9 to 3.8.
Python 3.8 is the latest version that supports tensorflow 2.3.0
For some cases, you need to upgrade your pip version
pip install --upgrade pip
then install tensorflow 2.3.0 version

Install TensorFlow addons

I have a venv with the following details:
python 3.6
TensorFlow 2.0.0
I tried to install tensorflow-addons using the following:
pip install -q --no-deps tensorflow-addons~=0.6
But then I keep receiving the following error:
Could not find a version that satisfies the requirement tensorflow-addons~=0.6 (from versions: )
No matching distribution found for tensorflow-addons~=0.6
You are using pip version 18.0, however version 19.3.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
I also tried other versions of tensorflow-addons, e. g., 0.4.0, 0.5.0, ..., but it did not work out.
I came across this problem two times and each time I had to solve the problem with a different solution.
1. Solution:
Upgrade pip/pip3 by using the following command.
python3 -m pip install --upgrade pip
Select appropriate version of the tensorflow-addons using the
following link
https://github.com/tensorflow/addons#python-op-compatibility-matrix
Install using the following command
pip install tensorflow-addons==version
2. Solution:
go to https://pypi.org/project/tensorflow-addons/#history
click on appropriate version
click on "Download files" on menu to the left
click on a .whl file that matches your system
requirements/specifications
go to the directory where you download the .whl file and run the
following
pip install tensorflow_addons-name.whl
The problem appears to have been related to installing on Windows platforms in the earlier versions of tensorflow-addons. As of time of updating this comment this issue should disappear completely.
In fact the developers state it has been solved, as it is shown here:
FYI stable release for windows is out. pip install tensorflow-addons
https://github.com/tensorflow/addons/issues/173#issuecomment-573106184
At your command prompt, simply specify the version you want to install.
For me, my python version is 3.7.4 and Tensorflow version is 2.2.0
Therefore, the tensorflow-addons version that matches my python and tensorflow version is 0.10.0
pip install tensorflow-addons==0.10.0

how to resolve bleach==1.5.0 html5lib=0.9999999 on windows10

Hello I want to pip install pymc3 in tensorflow version 3.5 on windows
but it is not worked.
pip install git+https://github.com/pymc-devs/pymc3
tensorflow-tensorboard 1.5.0 has requirement bleach==1.5.0, but you'll have bleach 2.1.2 which is incompatible.
tensorflow-tensorboard 1.5.0 has requirement html5lib==0.9999999, but you'll have html5lib 1.0.1 which is incompatible
please help me :(
It is clear from the error that there is a mismatch of the package versions. You have several options from here.
If you haven't installed tensorboard already, install tensorboard and see if the error is resolved: pip install tensorboard
If you have installed tensorboard already, uninstall tensorboard with: pip uninstall tensorboard and specify the version of tensorboard you want to install: pip install tensorboard=1.5.1. Refer to here for more details
As suggested by your screenshot, it is evident that the package tensorflow-tensorboard is not compatible with the latest version of bleach package. These are interdependent packages.
An easy solution, as suggested by your command prompt is to use an older version of bleach package.
I tested the following command, which worked for me for installing bleach 1.5.0.pip install -I bleach==1.5.0
I am using pip version = 10.0.1.To check your current pip version, run the following command: pip --version
After you're done with the installation, you can check the version of all your installed packages usingpip freeze
For more information about this compatibility issue, refer this TensorFlow Article on GitHub.
You can do the same for html5lib as well, by following the exact steps above and changing the parameter.
Hope it works!
Tensorflow-tensorboard is not compatible with the latest version of bleach package.
You have to install the following packages by
$ pip install numpy==1.13.0 --user
You install the other with same
Check the version of pip:
$ pip --version
Update pip: $pip install --upgrade pip

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.