You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installing python3.7 using apt on Debian 10/11. We also install other python3.7 versions using alt installs. Doing a pip3 install -U simplejson spits out an error that /usr/bin/pip doesn't exist. This is accurate, since it's installed in /usr/local/bin/pip. shutil.which reflects the correct path
Expected behavior
No response
pip version
21
Python version
3.7
OS
Debian 10
How to Reproduce
Install apt-get install python3.7-pip
Alt install python3.8+ to /usr/local/bin/
Upgrade pip to 22.2.1 (python3.7 -m pip install -U pip)
Install a package (python3.7 -m pip install sauna)
The output below is then shown
Output
--- Logging error ---
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/utils/logging.py", line 177, in emit
self.console.print(renderable, overflow="ignore", crop=False, style=style)
File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/rich/console.py", line 1673, in print
extend(render(renderable, render_options))
File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/rich/console.py", line 1305, in render
forrender_outputin iter_render:
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/utils/logging.py", line 134, in __rich_console__
forlinein lines:
File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/rich/segment.py", line 249, in split_lines
forsegmentin segments:
File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/rich/console.py", line 1283, in render
renderable = rich_cast(renderable)
File "/usr/local/lib/python3.7/dist-packages/pip/_vendor/rich/protocol.py", line 36, in rich_cast
renderable = cast_method()
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/self_outdated_check.py", line 130, in __rich__
pip_cmd = get_best_invocation_for_this_pip()
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/utils/entrypoints.py", line 60, in get_best_invocation_for_this_pip
os.path.join(binary_prefix, exe_name),
File "/usr/lib/python3.7/genericpath.py", line 97, in samefile
s2 = os.stat(f2)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/pip'
Call stack:
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.7/dist-packages/pip/__main__.py", line 31, in<module>sys.exit(_main())
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/main.py", line 70, in main
return command.main(cmd_args)
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/base_command.py", line 101, in main
return self._main(args)
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/base_command.py", line 223, in _main
self.handle_pip_version_check(options)
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/req_command.py", line 190, in handle_pip_version_check
pip_self_version_check(session, options)
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/self_outdated_check.py", line 236, in pip_self_version_check
logger.warning("[present-rich] %s", upgrade_prompt)
File "/usr/lib/python3.7/logging/__init__.py", line 1395, in warning
self._log(WARNING, msg, args, **kwargs)
File "/usr/lib/python3.7/logging/__init__.py", line 1519, in _log
self.handle(record)
File "/usr/lib/python3.7/logging/__init__.py", line 1529, in handle
self.callHandlers(record)
File "/usr/lib/python3.7/logging/__init__.py", line 1591, in callHandlers
hdlr.handle(record)
File "/usr/lib/python3.7/logging/__init__.py", line 905, in handle
self.emit(record)
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/utils/logging.py", line 179, in emit
self.handleError(record)
Message: '[present-rich] %s'
Arguments: (UpgradePrompt(old='22.2.1', new='22.2.2'),)
Description
Installing python3.7 using apt on Debian 10/11. We also install other python3.7 versions using alt installs. Doing a pip3 install -U simplejson spits out an error that /usr/bin/pip doesn't exist. This is accurate, since it's installed in /usr/local/bin/pip. shutil.which reflects the correct path
Expected behavior
No response
pip version
21
Python version
3.7
OS
Debian 10
How to Reproduce
Install apt-get install python3.7-pip
Alt install python3.8+ to /usr/local/bin/
Upgrade pip to 22.2.1 (python3.7 -m pip install -U pip)
Install a package (python3.7 -m pip install sauna)
The output below is then shown
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: