I am trying to install pygame on my pc but the process was getting finished by exit code -1. So some people recommended to upgrade it (my old one was 7.1.0) After upgrading, I am still seeing 7.1.0
Command:
pip install --upgrade pip
What I got
You are using pip version 7.1.0, however version 21.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm
and.
Collecting pip
Using cached https://files.pythonhosted.org/packages/ac/cf/0cc542fc93de2f3b9b5
3cb979c7d1118cffb93204afb46299a9f858e113f/pip-21.1-py3-none-any.whl
Installing collected packages: pip
Successfully installed pip-7.1.0
So I mean that pip is still stuck at 7.1.0 instead it should have jumped to the latest??*
Now when i try to see pip version by typing:
pip --version
it returns
pip 7.1.0 from c:\python34\lib\site-packages\pip-7.1.0-py3.4.egg (python 3.4)
Run the following command:
$ python -m pip install --upgrade pip
Related
Whenever I try to install the SpeechRecognition package within my Python environment it keeps telling me You are using pip version 10.0.1, however version 20.3.3 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command., However, when I check the pip version I can see that it's on the latest version. The package doesn't install and continues to show this message.
Also just an off question, what does the -m wildcard do for the pip install command?
Any ideas?
Thanks in advance,
-Yaseen
Try to upgrade the pip using this command:
python -m pip install --upgrade pip
How can I fix this issue? This makes no sense, i guess i have two different python path so python gets confused how can i fix this issue as well?
C:\Users\user>pip install pip
Requirement already satisfied: pip in c:\users\user\appdata\local\programs\python\python38-32\lib\site-packages (19.3.1)
WARNING: You are using pip version 19.3.1; however, version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
C:\Users\user>python -m pip install --upgrade pip
Requirement already up-to-date: pip in c:\users\user\appdata\local\programs\python\python37-32\lib\site-packages (20.0.2)
You have 2 different versions of Python (hence 2 different versions of pip) installed.
pip in c:\users\user\appdata\local\programs\python\python38-32
and
pip in c:\users\user\appdata\local\programs\python\python37-32
In the first example you did pip install pip but in the second python -m pip install --upgrade pip (The help text gave you a bad advice in this case).
If you want to upgrade the Python 3.8 pip, do pip install --upgrade pip or with the full path c:\users\kayra\appdata\local\programs\python\python38-32\python.exe -m pip install --upgrade pip.
I'm trying to upgrade pip on Centos 7. I pip 8.1.2 from /usr/lib/python2.7/site-packages (python 2.7) installed.
When I run pip install --upgrade pip --user I get the following output:
Collecting pip
Using cached https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl
Installing collected packages: pip
Successfully installed pip-8.1.2
You are using pip version 8.1.2, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
What I've tried
I've tried the following, which have all resulted in the same output and result as above:
pip install --upgrade pip --user
pip install -U pip --user --ignore-installed
pip install -U pip --user --ignore-installed --no-cache-dir
sudo yum update pip which returns
No Match for argument: pip
No package pip available.
No packages marked for update
sudo yum update python-pip which returns No packages marked for update
Observations
python -m pip --version outputs:
pip 19.3.1 from /home/deploy/.local/lib/python2.7/site-packages/pip (python 2.7)
pip --version outputs:
pip 8.1.2 from /usr/lib/python2.7/site-packages (python 2.7)
You need to update your PATH to include /home/deploy/.local/lib/python2.7/bin before /usr/lib/python2.7/bin if you want pip to resolve to the same location as python. Otherwise, python -m pip is the more proper usage pattern
Otherwise, you're looking at two completely separate python installations and pip is indeed upgraded in one of them
Note: Python2 is end of life, so probably best to remove the one in your home folder, anyway, and switch to using something like Pipenv or pyenv
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
My installation of pip seems to be convinced it is out of date:
$ sudo pip install editable .
<my stuff gets installed>
You are using pip version 8.1.1, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
$ pip --version
pip 8.1.2 from /home/wash/.local/lib/python2.7/site-packages (python 2.7)
$ python --version
Python 2.7.11+
I am running Debian 8.0. I've tried running pip install --upgrade pip as it has requested.