Upgrading pip does not do anything, just tells me to upgrade Pip again and that the requirements are satisfied--however, I am on an old pip version. This is Python27, I get the same issue whether I am in a virtual environment or not.
Output:
C:\Python27>python -m pip install --upgrade pip
Requirement already up-to-date: pip in c:\python27\lib\site-packages
You are using pip version 9.0.1, however version 19.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Versions Installed:
$ pip --version
pip 9.0.1 from c:\python27\lib\site-packages (python 2.7)
$ pip --version
pip 9.0.1 from c:\users\aroytikh\dev\flask-tutorial\venv\lib\site-
packages (python 2.7)
(venv)
I think it how to update pip will help you and make sure that you are running command prompt as Administrator. you can do this by right click on the "Command Prompt" application and choose "Run as administrator" and type this command in your command prompt.
python -m pip install -U pip
try this if it isn't working for you..
Download Pip 19.1.1
Install Pip using this command
$ python -m pip install downloads/pip-19.1.1-py2.py3-none-any.whl
or if it is tar.gz file then
$ python -m pip install downloads/pip-19.1.1.tar.gz
Related
I have pip3 installed from when I installed Python3 through Homebrew. But now when I use pip3 to install things, I get the following message:
You are using pip version 10.0.1, however version 19.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
But when I use pip install --upgrade pip, I get the following message:
-bash: pip: command not found
I'm not sure what the precise terminology is, but should I be "linking" the pip command to pip3?
Upgrade pip3 as follows to avoid the confusion between pip and pip3:
python3 -m pip install --upgrade pip
When I try to install anything with (for example) python3 -m pip install numpy , I get
Could not find a version that satisfies the requirement numpy (from versions: )
No matching distribution found for numpy
I've tried upgrading pip3 with python3 -m pip install --upgrade pip but have only gotten
Requirement already up-to-date: pip in
/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-
packages
and when I do python3 -m pip --version I get
pip 7.1.2 from /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (python 3.5)
I'm unable to install any modules at all. Any advice? I am on MacOS.
To solve your problem, I suggest you use brew as the package manager and install python, not as binary from the python.org but binary using brew (https://brew.sh), I hope it'll fix your troubles, during the installation process.
Install brew package manager:
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install "python3" on your machine (python2 can be installed in the same way):
$ brew install python3
Check what version of python you are using:
$ which python3
Output(should look like): /usr/local/bin/python3
Check what pip you are using:
$ which pip3
Output(should look like): /usr/local/bin/pip3
Then you can install any package using "pip":
$ pip3 install virtualenv
Verify that package was installed:
$ pip3 freeze | grep virtualenv
Update pip manually, first download pip:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
and then run the command
python3 get-pip.py
Now you can install with pip3
pip3 install numpy
Every time I use pip to install some package, it says:
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.
But when I run
python -m pip install --upgrade pip
It says:
Requirement already up-to-date:
Why is this happening?
Based on your comments, pip is linked to your python 3 installation. The version of pip included in your python 2 installation is up to date (as shown by the python -m ... command you ran).
To update pip for python3, run the same command but using python3 instead. Something like
python3 -m pip install --upgrade pip
Given that the pip you are using is saying it needs updating, you could also just run
pip install --upgrade pip
I want to upgrade my pip, but if I type in "python -m pip install --upgrade pip", then my command shell says "cannot find 'python'". Python is already installed and my command shell can't detect the command "python", though.
It depends on which version of python you are using:
pip3 install --upgrade pip
Or:
python3 -m pip install --upgrade pip
Try that as I suspect you are using python 3 which is why it doesn't work.
I have both python installed on Win7:
python --version
Python 2.7.11
pip3 --version
pip 7.1.2 from c:\python34\lib\site-packages <python 3.4>
pip --version
pip 9.0.0 from c:\python27\lib\site-packages <python 2.7>
When I use pip3 install wheel,I was told to use python -m pip install --upgrade pip to upgrade.
However, this code only upgrade the pip, not pip3.
So how can I update pip3?
pip3 install --update pip seems not work
$ pip3 install --upgrade pip
will do it.
501 $ pip3 install --upgrade pip
Collecting pip
Downloading pip-9.0.0-py2.py3-none-any.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 865kB/s
Installing collected packages: pip
Found existing installation: pip 8.1.2
Uninstalling pip-8.1.2:
Successfully uninstalled pip-8.1.2
Successfully installed pip-9.0.0
502 $ pip3 version
ERROR: unknown command "version"
503 $ pip3 --version
pip 9.0.0 from /usr/local/lib/python3.5/site-packages (python 3.5)
504 $
Use python3 instead of python as:
python3 -m pip install --upgrade pip