Solved Which Python? Calls to Python3 dead end

Hi, when I installed xorg Python3.7 was pulled in automatically. I figured this was the default P3 version. But calling python3 returns 'command not found' which is trouble for scripts.

Using 'pkg install python3' wants to install Python3.3

So, is Python3.3 actually the FreeBSD default? Should I install 3.3 alongside 3.7 or is there a better solution?

edit: I'm curious about best practice in FreeBSD more so than trying to force either version. Either one is ok for me, although I slightly prefer 3.7
 
Maybe you need the meta port python-3.7_3,2 and not python3-3_3
"python -V" returns Python 3.7.7
"python3 -V" returns Python 3.7.7 for me.
I have python-3.7_3,2 , python37-3.7.7 installed
In make.conf
DEFAULT_VERSIONS+= python=3.7
DEFAULT_VERSIONS+= python3=3.7
 
For me,
$pkg which /usr/local/bin/python
/usr/local/bin/python was installed by package python-3.7_3,2
$pkg which /usr/local/bin/python3
/usr/local/bin/python3 was installed by package python3-3_3
$pkg which pkg which /usr/local/bin/python3.7
/usr/local/bin/python3.7 was installed by package python37-3.7.7
 
$pkg which pkg which /usr/local/bin/python3.7
/usr/local/bin/python3.7 was installed by package python37-3.7.7

Very interesting, I get "/usr/local/bin/python3 was not found in the database" from which python3

although which python3.7 works as expected
 
The command is python3.7 and not python37
I would simply create a softlink from python to python3.7 and from python3 to python3.7 to solve this.
I think the freebsd package links to python3 to python3.3 in order to add confusion.
 
Back
Top