Solved Build lang/python311 port without executable

I successfully build python311, but somehow if I try to search for it, the system does not give me an executable.
Do I need to install something else in order to use the python interpreter ?
 
Note that it will not create a python or python3 executable, only a python3.11. See pkg info -l python311.

Code:
root@fbsd-test:~ # pkg info -l python311 | grep '/usr/local/bin'
        /usr/local/bin/2to3-3.11
        /usr/local/bin/idle3.11
        /usr/local/bin/pydoc3.11
        /usr/local/bin/python3.11
        /usr/local/bin/python3.11-config
 
if you install yt-dlp manually to get the latest version
the shebang points to python3 which doesnt exist

so the solution is to create a symlink

Code:
sudo ln -s /usr/local/bin/python3.11 /usr/local/bin/python3

problem solved
 
Add to that: Most python scripts you find are designed for Linux (which after all has a dominating market share), and the shebang points to /usr/bin/python3. So I also create that symlink to /usr/local/bin. I know this isn't a nice thing to do, but it's better than the alternative of having scripts fail.
 
pkg install python3
Code:
Description :
This is a meta port to the Python 3.x interpreter and provides symbolic links
to bin/python3, bin/pydoc3, bin/idle3 and so on to allow compatibility with
minor version agnostic python scripts.
pkg query %Fp python3|xargs ls -l
 
Back
Top