How to Update/Install python - python

I want to install pip on my windows but I get an error saying
ERROR: Could not find a version that satisfies the requirement pip
(from versions: none)
ERROR: No matching distribution found for pip

First check pip version by using the following command then upgrade
pip --version
pip install --upgrade pip
this will upgrade pip version

Related

Can't install STT from coqui ai with pip

I am trying to install stt package from pypi.org and keep on getting this error. I am able to install all other packages except this one. Am I doing something wrong?
$ pip3 install stt
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement stt (from versions: none)
ERROR: No matching distribution found for stt
Python & pip version
$ pip3 --version
pip 22.1 from /Users/vraj/Library/Python/3.8/lib/python/site-packages/pip (python 3.8)
$ python3 --version
Python 3.8.9

Pip has 2 versions, what should I do?

So i really don't know what to do. I am confused. I am also using a virtual environment named PyCharm. There are many issues with pip there but I haven't seen anything as weird as this.
cmd output:
C:\Users\Artur\PycharmProjects\first\venv\Scripts>pip install time
Collecting time
Could not find a version that satisfies the requirement time (from versions: )
No matching distribution found for time
You are using pip version 10.0.1, however version 19.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
C:\Users\Artur\PycharmProjects\first\venv\Scripts>python -m pip install --upgrade pip
Requirement already up-to-date: pip in c:\users\artur\pycharmprojects\first\venv\lib\site-packages (19.0.1)
C:\Users\Artur\PycharmProjects\first\venv\Scripts>pip install time
Collecting time
Could not find a version that satisfies the requirement time (from versions: )
No matching distribution found for time
You are using pip version 10.0.1, however version 19.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
To resolving your outdated pip in PyCharm by running this in your PyCharm terminal:
python -m pip install -U --force-reinstall pip
This will fix the warning you are receiving...You are using pip version 10.0.1, however version 19.0.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.

Unable to install imbalanced-learn

I am trying to install the imbalanced-learn package in Python3 with the following command: pip install - U imbalanced-learn. I get this error:
Could not find a version that satisfies the requirement imbalanced-learn (from versions: )
No matching distribution found for imbalanced-learn
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.
However, when I try upgrading using python -m pip install --upgrade pip I get this:
Requirement already up-to-date: pip in c:\programdata\anaconda3\lib\site-packages (10.0.1)
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.
Can anyone tell me what's going on?
I had also struggled with installing it but it worked for me with:
conda install imbalanced-learn
Trying doing a pip install in your conda environment with pip install imbalanced-learn. If that doesn't work then I'll recommend you revert back to v0.3 with conda install -c glemaitre imbalanced-learn

pip is refusing to install anything

So I'm trying to install twillio but when I try to install it it throws this error:
MY_DEVICE_NAME:~ MY_NAME$ pip install twillio
Collecting twillio
Could not find a version that satisfies the requirement twillio (from versions: )
No matching distribution found for twillio
You are using pip version 10.0.0b2, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
MY_DEVICE_NAME:~ MY_NAME$ pip install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b44c8a6e917c1820365cbebcb6a8974d1cd045ab4/pip-10.0.1-py2.py3-none-any.whl
matplotlib 1.3.1 requires nose, which is not installed.
matplotlib 1.3.1 requires tornado, which is not installed.
matplotlib 1.3.1 has requirement numpy>=1.5, but you'll have numpy 1.8.0rc1 which is incompatible.
Installing collected packages: pip
Found existing installation: pip 10.0.0b2
Uninstalling pip-10.0.0b2:
You are using pip version 10.0.0b2, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
After which I just get stuck in an infinite loop. so what should I do?
You made a small mistake
pip install twilio
You were trying pip install twillio
Use the following:-
pip install --upgrade pip
or
python -m pip install --upgrade pip

Can't install torch on linux box using pip

As the title states I am trying to install torch on linux using pip.
I run the command pip install torch==0.3.1
And I get the following output:
Collecting torch==0.3.1
Could not find a version that satisfies the requirement torch==0.3.1 (from versions: 0.1.2, 0.1.2.post1)
No matching distribution found for torch==0.3.1
Any ideas what the issue might be?
Try update pip itself, using
pip install --upgrade pip
then,
pip install torch==0.3.1
Try to do like this:
sudo apt-get update
then,
pip install torch==0.3.1

Categories