Unable to install tensorflow with pip in virtualenv - tensorflow

facing below error while installing tensorflow
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
pip version and python version
pip 22.2.2
python 3.10

Related

Mac M1 - tensorflow-dependent package installation not working

I am using a MacBook Pro M1 and try to install the package dmol-book, which has tensorflow-dependency, via pip3 install dmol-book==1.3.2 .
It throws the following error:
ERROR: Ignored the following versions that require a different python version: 1.0.1 Requires-Python >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3,!=3.4.*,<3.9; 1.1.0 Requires-Python >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,<3.9; 1.1.1 Requires-Python >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,<3.9
ERROR: Could not find a version that satisfies the requirement tensorflow>=2.7 (from dmol-book) (from versions: none)
ERROR: No matching distribution found for tensorflow>=2.7
I have installed tensorflow via
pip3 install tensorflow-macos
pip3 install tensorflow-metal
I can use tensorflow within python3:
>>> import tensorflow
>>> tensorflow.__version__
'2.11.0'
>>> tensorflow.__file__
'/Users/username/.pyenv/versions/3.10.7/envs/venv/lib/python3.10/site-packages/tensorflow/__init__.py'
but pip3 list does not list tensorflow, only
tensorboard 2.11.0
tensorboard-data-server 0.6.1
tensorboard-plugin-wit 1.8.1
tensorboardX 2.5.1
tensorflow-estimator 2.11.0
tensorflow-macos 2.11.0
tensorflow-metal 0.7.0
tensorstore 0.1.28
tensorflow also shows up as a directory in the original virtual environment directory, that I created:
/Users/username/pathtovirtualenv/venv/lib/python3.10/site-packages/tensorflow
Can someone help me to resolve this issue?
Thanks in advance!
I think its because it does not find a version that satisfies the requirement as mentioned.

downgrading tensorflow to v=2.1.0

I'm trying to use keras-tcn:
https://github.com/philipperemy/keras-tcn
But it seems that there is some conflict.
Installing it is downgrading keras from 2.4.3 to 2.3.1. But keras 2.3.1 seems to need tensorflow 2.1.0.
Yet by trying to install tensorflow:
pip install tensorflow == 2.1.0, I do have this error message:
ERROR: Could not find a version that satisfies the requirement tensorflow==2.1.0 (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.2.1, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1, 2.4.0rc0, 2.4.0rc1, 2.4.0rc2, 2.4.0rc3)
ERROR: No matching distribution found for tensorflow==2.1.0
Does anyone have some solutions for installing it ?
Here are some infos that might be useful
pip : 20.2.4
python : 3.8.5
Downgrade your python to 3.7 and install tensorflow 2.1

ERROR: tensorflow 1.13.0rc2 has requirement tensorboard<1.13.0,>=1.12.0, but you'll have tensorboard 1.14.0 which is incompatible

I was trying to install tensorflow gpu on Windows 10, but I encountered following error messages:
ERROR: tensorflow 1.13.0rc2 has requirement tensorboard<1.13.0,>=1.12.0, but you'll have tensorboard 1.14.0 which is incompatible.
ERROR: tensorflow 1.13.0rc2 has requirement tensorflow-estimator<1.14.0rc0,>=1.13.0rc0, but you'll have tensorflow-estimator 1.14.0 which is incompatible.
Installing collected packages: google-pasta, wrapt, tensorflow-estimator, tensorflow-gpu
Found existing installation: wrapt 1.10.11
ERROR: Cannot uninstall 'wrapt'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
What is the problem and how can I fix it?

Installation Error:Collecting tensorflow ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)

Error raised when installing tensorflow using pip
C:\Users\Lenovo>python --version
Python 3.6.0
C:\Users\Lenovo>pip --version
pip 19.1.1 from c:\users\lenovo\appdata\local\programs\python\python36-32\lib\site-packages\pip (python 3.6)
C:\Users\Lenovo>pip install tensorflow
Collecting tensorflow
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
You can use Python3.5.2 to install Tensorflow, but notice that it can not be installed on your environment and you should use base interpreter to install it then you can make your environment and inherit form the basic interpreter and use it in your environment.

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

C:\WINDOWS\system32>pip install tensorflow
Collecting tensorflow
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow
I installed the Python (3.6 64-bit), and wanna install tensorflow in Anaconda3.
And I upgraded pip to the latest version, 19.0.1.
Requirement already up-to-date: pip in c:\anaconda3\lib\site-packages (19.0.1)
So, how can I solve this problem?
if you have anaconda do conda install tensorflow. anaconda version of tensorflow is faster than pip anyways.