19.3 doesn't work after upgrading from 19.2.3
See original GitHub issueEnvironment
- 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
- Using pip with version 19.2.3 upgrade to 19.3 with command “pip install --upgrade pip --user”
- Then run any command in pip.
- 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
- Copying the files from
%AppData%\Roaming\Python\Python37-32\Scripts\pip*
to%AppData%\Local\Programs\Python\Python37-32\Scripts\
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:22 (15 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @thijstriemstra. That seems like a separate issue, probably what happened is:
/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 usesudo pip install -U pip
butpip 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.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.
@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.