Problems when trying to install tensorflow - python-3.x

I am trying to install tensorflow by using "!pip install tensorflow"(on python 3.8) but what I get is the following error message:
tf-nightly 2.5.0.dev20210102 requires grpcio~=1.34.0, but you'll have grpcio 1.32.0 which is incompatible.
tf-nightly 2.5.0.dev20210102 requires h5py~=3.1.0, but you'll have h5py 2.10.0 which is incompatible.
tf-nightly-gpu 2.5.0.dev20210102 requires grpcio~=1.34.0, but you'll have grpcio 1.32.0 which is incompatible.
tf-nightly-gpu 2.5.0.dev20210102 requires h5py~=3.1.0, but you'll have h5py 2.10.0 which is incompatible.
How can I solve this problem?

Have you already installed tf-nightly if not then do it using pip install tf-nightlya nd then pip install grpcio. The error itself clarifies that it needs the updated version of grpcio (requires grpcio~=1.34.0, but you'll have grpcio 1.32.0 which is incompatible).Follow this link to get complete details of the process to install TensorFlow.

you should pip install grpcio==1.34.0 at first, i think it is better treat '~=' as '=='

Related

What is causing pip's dependency resolver issue for installing Streamlit?

I've installed Streamlit package on my Macbook M1 but the following error was prompted after the pip install under Python 3.9.7. I am not successful in launching the streamlit using the URL link. Can anyone advise how to resolve the following issue?
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
tensorflow-macos 2.5.0 requires numpy~=1.19.2, but you have numpy 1.23.4 which is incompatible.
tensorflow-macos 2.5.0 requires typing-extensions~=3.7.4, but you have typing-extensions 4.4.0 which is incompatible.
scipy 1.7.3 requires numpy<1.23.0,>=1.16.5, but you have numpy 1.23.4 which is incompatible.

When installing Python 3: pip3 install googleanalytics an error appears

When I'm installing googleanalytics I get the error (https://pypi.org/project/googleanalytics/)
How to resolve this problem?
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pandas 1.4.2 requires python-dateutil>=2.8.1, but you have python-dateutil 1.5 which is incompatible.
matplotlib 3.4.3 requires python-dateutil>=2.7, but you have python-dateutil 1.5 which is incompatible.

Why is an older version of sktime getting installed using pip?

I'm trying to install sktime using pip. The latest version in pypi is 0.5.1, however when I install 0.4.3 gets installed. I tried installing using pip3 install sktime==0.5.1, it throws error
Could not find a version that satisfies the requirement sktime==0.5 (from versions: 0.1.dev0, 0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.4.1, 0.4.2, 0.4.3)
No matching distribution found for sktime==0.5
For future users, relevant details from chat:
Ubuntu 18.0.4
pip 9.0.1
python 3.6.9
The issue here is that the pip version is too old to install any of the wheel files for 0.5.1. manylinux2010 support was added in pip 19.0, according to this issue. To fix this, just upgrade pip to a version >19.
So why does this issue only occur for version 0.5.1 and not any of the previous ones? It's because all of the previous version(for instance, 0.4.3) also provide a source distribution(the .tar.gz) which can be used to build from source as an alternative to wheels. However, this sdist was removed in 0.5.1.

Could not build wheels for fbprophet which do not use PEP 517

I am trying to install Facebook's Prophet package on my windows system using pip install fbprophet command. However, I am getting an error:
DEPRECATION: Could not build wheels for fbprophet which do not use PEP 517.
I am using pip version 20.2.2, Python 3.6.8 and all other requirements are satisfied.
I tried searching the issue with PEP 517, but couldn't find one. It seems that fbprophet package do not use PIP 517. I couldn't find a way to disable it or an alternative to install the package.
I also tried using conda install -c conda-forge fbprophet, but no luck.
Please let me know what is the issue and how can I resolve it.
Thanking you in anticipation.
You've probably resolved this by now or moved on but I was having a similar issue. On Windows I was able to install prophet by first running:
conda install -c conda-forge compilers
to install the appropriate compilers. Then run:
conda install -c conda-forge prophet
On MacOS I found I needed to install ruby version manager (RVM) to be able to install prophet

mystic 0.3.3 has requirement numpy<1.16.0,>=1.0, but you'll have numpy 1.16.2 which is incompatible

I'm using python 3.7 on my windows 10 system.I'm trying to install library reuqests. So I used following code
pip install requests
I got the error message
mystic 0.3.3 has requirement numpy<1.16.0,>=1.0, but you'll have numpy 1.16.2 which is incompatible.
Can you suggest me how to resolve this issue?
I got same issue during fastai package installation, uninstalled numpy and installing mystic package using anaconda prompt fixed the issue
pip uninstall numpy
pip install mystic

Resources