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
Related
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.
i have installed 3.10 version of python and now facing problem to inastall tensorflow C:\Python\python310>pip install tensorflow ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
Tf-nightly Python3.10 wheels supports Linux and MacOS. You can get them via pip install tf-nightly on the corresponding operating system.
Take a look at this #comment
I am new to Federated Learning, and I am trying to get started with TensorFlow Federated. While working on the tutorial "Federated Learning for Image Classification" on Colab, I tried to install TensorFlow Federated, but was met with these errors:
ERROR: tensorflow 2.5.0 requires tensorboard~=2.5, which is not installed.
ERROR: tensorflow 2.5.0 has requirement grpcio~=1.34.0, but you'll have grpcio 1.37.1 which is incompatible.
ERROR: tensorflow 2.5.0 has requirement keras-nightly~=2.5.0.dev, but you'll have keras-nightly 2.6.0.dev2021062500 which is incompatible.
ERROR: spacy 2.2.4 has requirement tqdm<5.0.0,>=4.38.0, but you'll have tqdm 4.28.1 which is incompatible.
ERROR: pymc3 3.11.2 has requirement cachetools>=4.2.1, but you'll have cachetools 3.1.1 which is incompatible.
ERROR: fbprophet 0.7.1 has requirement tqdm>=4.36.1, but you'll have tqdm 4.28.1 which is incompatible.
ERROR: datascience 0.10.6 has requirement folium==0.2.1, but you'll have folium 0.8.3 which is incompatible.
ERROR: tensorflow-privacy 0.6.1 has requirement attrs>=21.2.0, but you'll have attrs 19.3.0 which is incompatible.
After installing the versions of the libraries mentioned here, I found that there still exist some internal conflicts with the installed libraries. Has anyone else faced this issue? Would be great to get some pointers on this!
You may try the following commands to reset the environment:
!pip uninstall tensorflow
!pip uninstall tf-nightly
!pip uninstall tensorflow-federated
!pip install tensorflow
!pip install tensorflow-federated
!pip install tensorflow-federated-nightly
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.
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.