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.

19.3 doesn't work after upgrading from 19.2.3

See original GitHub issue

Environment

  • pip version: 19.3
  • Python version: 3.7.3
  • OS: Windows 10

Description I used pip 19.2.3 and today I upgrade it to 19.3 in my system and it doesn’t work using pip command (image attached)

Expected behavior

How to Reproduce

  1. Using pip with version 19.2.3 upgrade to 19.3 with command “pip install --upgrade pip --user”
  2. Then run any command in pip.
  3. It’s going to throw an exception (same as image attached)

Output

C:\Users\<user>>pip --version
Traceback (most recent call last):
  File "c:\users\<user>\appdata\local\programs\python\python37-32\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\<user>\appdata\local\programs\python\python37-32\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\<user>\AppData\Local\Programs\Python\Python37-32\Scripts\pip.exe\__main__.py", line 9, in <module>
TypeError: 'module' object is not callable

Workaround

  1. Copying the files from %AppData%\Roaming\Python\Python37-32\Scripts\pip* to %AppData%\Local\Programs\Python\Python37-32\Scripts\

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:22 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
chrahuntcommented, Oct 28, 2019

Hi @thijstriemstra. That seems like a separate issue, probably what happened is:

  1. In the first case the pip installation created the script in /usr/local/bin/pip3 and left the original in /usr/bin/pip3. The original is what is getting invoked and it has the old entrypoint location. The solution to this is to not use sudo pip install -U pip but pip install -U --user pip, otherwise it impacts your system at large in unexpected ways because distributions will have specific configuration for the system-wide pip.
  2. In the second case, bash has “hashed” (remembered) the location of the last pip3 that it previously invoked. You need to run hash pip3 after installation in order for it to pick up the new script. We have several issues open to add a warning for this case, notably #6863.

You may also check out #5599 for more information, it’s our go-to reference for these kinds of situations, but we could probably take this as a sign that it can be made more approachable/easily found.

If you still have problems, please create a separate issue. This one hasn’t had action in awhile so I will close it.

0reactions
chrahuntcommented, Nov 2, 2019

@pfmoore, I think it will be once we have implemented some of the script-related warnings like #6863 mentioned above. Also we would switch to pip install -U pip after #7002 gets into a release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pip command is not working after upgrade from 19.2.3 to 20.0
pip command is not working after an upgrade from 19.2.3 to 20.0. Facing this issue in python. How to go back to previous...
Read more >
Why Is Kodi Not Working? 12 Common Problems & Fixes
Kodi not working? Have issues streaming video via Kodi? Is buffering taking too long? Check our full guide to troubleshooting Kodi issues!
Read more >
Kodi 19.3 is out - A little more rapidly than usual, but to get a ...
It's on xbox but it doesn't work. I've tried at least 15 builds for matrix and not one of them work. They download...
Read more >
Release Notes for Cisco vEdge Devices and Cisco SD-WAN ...
Multicast application stops working after vedge upgrade from 19.2.3 to 20.3.936. CSCvy66289. vEdge not initiating arp request after ...
Read more >
How to Upgrade Python PIP - Nbshare Notebooks
You are using pip version 9.0.1, however version 19.3.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
Read more >

github_iconTop Related Medium Post

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

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