Incompatible version requirements when install package through pip - pip

I have a conda environment. I want to install DeepSpeech in it. When I install it through pip I get an error, but the deepspeech package still gets installed.
ERROR: tensorflow 2.1.0 has requirement scipy==1.4.1; python_version >= "3", but you'll have scipy 1.5.0 which is incompatible.
ERROR: tensorflow 2.1.0 has requirement tensorboard<2.2.0,>=2.1.0, but you'll have tensorboard 2.2.1 which is incompatible.
What does this mean? I know I had tensorflow installed before, does this mean it got reinstalled, but it still has previous dependencies or were other libraries changed and the previous tensorflow is now incompatible.
The output of pip3 check
tensorflow 2.1.0 has requirement scipy==1.4.1; python_version >= "3", but you have scipy 1.5.0.
tensorflow 2.1.0 has requirement tensorboard<2.2.0,>=2.1.0, but you have tensorboard 2.2.1.
pathos 0.2.7 has requirement dill>=0.3.3, but you have dill 0.2.9.
multiprocess 0.70.11.1 has requirement dill>=0.3.3, but you have dill 0.2.9.

Try it:
pip uninstall scipy
pip uninstall tensorboard
pip install --ignore-installed tensorflow==2.1.0

Related

unable to load torchaudio even after installing

I'm trying to use torchaudio but I'm unable to import it. I have installed it and it is also visible through the pip list.
<ipython-input-6-4cf0a64f61c0> in <module>
----> 1 import torchaudio
ModuleNotFoundError: No module named 'torchaudio'
pytorch-lightning 1.2.0
torch 1.10.1
torchaudio 0.10.1
torchvision 0.11.2
WARNING: You are using pip version 21.1.2; however, version 21.3.1 is available.
You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
Since you are using linux and CPU, you should consider uninstalling every pytorch related packages and re-install them via:
pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu
as shown here.
I was stuck with the same error. Tried a lot of ways to install and use torchaudio.
This was worked for me (after uninstalling existing torchaudio):
import os
!git clone https://github.com/pytorch/audio.git
os.chdir("audio")
!git checkout 632ea67
!python setup.py install

Trouble using PIP Install

Having trouble installing any packages or upgrading through PIP install. basically i want to install packages for Data Science. Not able to use CONDA either.
Error I got-
ERROR: Could not find a version that satisfies the requirement menuinst (from conda) (from versions: none)
ERROR: No matching distribution found for menuinst (from conda)
WARNING: You are using pip version 19.2.3, however version 20.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

Error when install autokeras on Windows 10

I tried to install autokeras (pip install autokeras) on my windows10 computer but got the following errors:
tensorflow-gpu 1.9.0 has requirement tensorboard<1.10.0,>=1.9.0, but you'll have tensorboard 1.10.0 which is incompatible.
tensorflow 1.10.0 has requirement numpy<=1.14.5,>=1.13.3, but you'll have numpy 1.15.4 which is incompatible.
Installing collected packages: scikit-learn, unidecode, pandas, inflect, tqdm, imageio, tensorboard, tensorflow, opencv-python, lightgbm, nltk, lws, joblib, librosa, networkx, cloudpickle, toolz, dask, PyWavelets, scikit-image, chardet, idna, urllib3, requests, autokeras
Found existing installation: scikit-learn 0.18.1
Cannot uninstall 'scikit-learn'. 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.
My python is 3.6.5, numpy 1.12.0 & 1.15.4, tensorboard 1.9.0, tensorflow-gpu 1.9.0.
Is the gpu version of tensorflow a problem for autokeras?
I would appreciate it a lot if someone can help me to solver this problem.
I had a similar problem when installing tensorflow-gpu on linux. Your tensorboard and numpy are too recent, meaning they are incompatible.
Your best bet is to set up a virtual environment (use virtualenv), install tensorboard 1.9.0 and numpy 1.13.3 and specify those for the virtual environment. Run the virtual environment and install tf-gpu in there and it should work.

Problem with tensorflow while downloading rasa_core

I’m trying to update the rasa bot source code from a friend of mine but I had a problem when trying to download rasa_core:
(cha_env) C:\Users\antoi\Documents\Programming\Nathalie\Chatbot_RASA_room_reservation>pip install rasa_core
Collecting rasa_core
...
Collecting tensorflow==1.10.0 (from rasa_core)
Could not find a version that satisfies the requirement tensorflow==1.10.0 (from rasa_core) (from versions: )
No matching distribution found for tensorflow==1.10.0 (from rasa_core)
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Do you have any idea ? Is it because of the requirements ?
I tried to install tensorflow according to this answer :
python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl
But I still have the same issue.
I remember seeing this issue when my colleague was installing it rasa_core. Try installing tensorflow separately then continue with rasa_core installation. It should solve the problem
pip install tensorflow
If you get No matching distribution found for tensorflow error try following:
Note: This works for 64 bit Windows for tensorflow version 1.12.0. For all the variants of tensorflow distribution please check https://storage.googleapis.com/tensorflow/
python -m pip install --upgrade https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-windows-x86_64-1.12.0-rc2.zip

Install jmespth-term in Mac OSx

I am unable to install jmespath-term
It gives me :
>> sudo pip install jmespath-term
Collecting jmespath-term
Could not find any downloads that satisfy the requirement jmespath-term
No distributions at all found for jmespath-term
Python Version
python --version
Python 2.7.5
Pip Version
pip --version
pip 6.0.3 from /Library/Python/2.7/site-packages/pip-6.0.3-py2.7.egg (python 2.7)
jmespath-term appears to have an alternate name in the pypi index:
Doing a search with pip (pip search jmespath-term) returns:
jmespath-terminal - JMESPath Terminal
So pip install jmespath-terminal should work for you.

Resources