Bugzilla Automation <bugzi...@freebsd.org> has asked freebsd-python (Nobody)
<python@FreeBSD.org> for maintainer-feedback:
Bug 265712: devel/py-pip: python38 pip requires some additional symlinks in
/usr/local/bin
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265712



--- Description ---
Running pip 22.2.2 as a regular user, pip crashes and dumps a traceback plus
this error:

FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/bin/pip3'

This is what gets created by the Ports pkg:

$ ls -l /usr/local/bin/pip*
lrwxr-xr-x  1 root  wheel    7 Jun  9 19:14 /usr/local/bin/pip -> pip-3.8
-rwxr-xr-x  1 root  wheel  949 Jun  9 19:14 /usr/local/bin/pip-3.8

Adding a pip3 -> pip-3.8 symlink solved that error, but then I got this error:

FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/bin/pip3.8'

Adding a pip3.8 -> pip-3.8 as well makes pip work properly again.  The final
result:

$ ls -l /usr/local/bin/pip*
lrwxr-xr-x  1 root  wheel    7 Jun  9 19:14 /usr/local/bin/pip -> pip-3.8
-rwxr-xr-x  1 root  wheel  949 Jun  9 19:14 /usr/local/bin/pip-3.8
lrwxr-xr-x  1 root  wheel    7 Aug  8 03:17 /usr/local/bin/pip3 -> pip-3.8
lrwxr-xr-x  1 root  wheel    7 Aug  8 03:18 /usr/local/bin/pip3.8 -> pip-3.8

Reply via email to