simion/pip-upgrader

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

LinqLover opened this issue · 2 comments

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

Simple workaround: Patch this

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

like this

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

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