question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrect command is shown to upgrade pip3

See original GitHub issue

macOS High Sierra Version 10.13.6 Terminal App

  • pip version: 19.2.3
  • Python version: 3.8
  • OS: High Sierra Version 10.13.6

Description At Python 3.8 fresh (1st time - only Python 2 was present prior) install, as well as after pip3 list command, the following incorrect message is displayed:

WARNING: You are using pip version 19.2.3, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Expected behavior The correct message to be displayed should read:

WARNING: You are using pip version 19.2.3, however version 19.3.1 is available.
You should consider upgrading via the 'pip**3** install --upgrade pip' command.

(missing 3 after pip)

How to Reproduce

  1. Get package from https://www.python.org/ftp/python/3.8.0/python-3.8.0-macosx10.9.pkg

  2. Then run https://www.python.org/ftp/python/3.8.0/python-3.8.0-macosx10.9.pkg

  3. The warning is displayed:

    WARNING: You are using pip version 19.2.3, however version 19.3.1 is available.
    You should consider upgrading via the 'pip install --upgrade pip' command.`
    
  4. Then run pip install --upgrade pip as suggested by the warning.

  5. An error is displayed:

    Collecting pip3
      ERROR: Could not find a version that satisfies the requirement pip3 (from versions: none)
    ERROR: No matching distribution found for pip3
    
  6. Then run pip3 install --upgrade pip as suggested by me above.

  7. Successful installation should commence, e.g.:

    Collecting pip
      Downloading https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl (1.4MB)
         |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1.4MB 3.4MB/s 
    Installing collected packages: pip
      Found existing installation: pip 19.2.3
        Uninstalling pip-19.2.3:
          Successfully uninstalled pip-19.2.3
    Successfully installed pip-19.3.1
    MM:~ username$ pip3 list
    Package    Version  
    ---------- ---------
    certifi    2019.9.11
    pip        19.3.1   
    setuptools 41.2.0
    

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
chrahuntcommented, Nov 20, 2019

It would be kind of ugly, but we could unconditionally put {sys.executable} -m pip.

1reaction
uday-patelcommented, Dec 27, 2019

pip3 install --upgrade pip Thank you, the above worked

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to update pip3 even though I try to update it
A quick way to workaround the problem is to make sure you upgrade pip whenever you create a new virtualenv, like so:
Read more >
pip3 command fails after upgrading to pip version 18.1
Cause for upgrading the system version, you would need to use sudo pip3 install --upgrade pip , or for installing/upgrading your user version,Β ......
Read more >
Update pip/pip3 to Python 3.8 in Ubuntu
I wanted to change my Python version associated with pip from 3.5 to 3.8. This proved nontrivial and totally undocumented anywhere IΒ ...
Read more >
How to install and use Pip3 - ActiveState
Python 3.4+ in most operating systems includes pip3 by default. If your python version is less than 3.4, then you should upgrade your...
Read more >
Error while upgrading pip ERROR Could not install packages ...
WARNING: You are using pip version 19.1.1, however version 19.2.3 is available. You should consider upgrading via the 'python -m pip install --Β ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found