pip-upgrader icon indicating copy to clipboard operation
pip-upgrader copied to clipboard

FileNotFoundError: [Errno 2] No such file or directory: 'pip': 'pip'

Open LinqLover opened this issue 3 years ago • 2 comments

On our machines, only pip3 is installed. Would be nice to add support for this setup.

LinqLover avatar Jul 13 '20 15:07 LinqLover

Simple workaround: Patch this https://github.com/simion/pip-upgrader/blob/b9caa5c45c4ab159adc488cdff721a26e679f984/pip_upgrader/packages_upgrader.py#L40 like this

-                 subprocess.check_call(['pip', 'install', pinned])
+                 subprocess.check_call(['pip3', 'install', pinned])

LinqLover avatar Oct 23 '20 17:10 LinqLover

Or add a symlink pip -> pip3 on your path, like the ubuntu package python-is-python3 does.

johantiden avatar Dec 13 '23 11:12 johantiden