simion / pip-upgrader

An interactive pip requirements upgrader. It also updates the version in your requirements.txt file.
Apache License 2.0
517 stars 37 forks source link

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

Open LinqLover opened 4 years ago

LinqLover commented 4 years ago

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

LinqLover commented 3 years ago

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])
johantiden commented 9 months ago

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