FreeBSD 14
Sponsored Link

Python 3.9 : Install2024/02/01

 

Install Python 3.9 that is the default version of Python on FreeBSD 14.

[1] Python 3.9 is installed by default, so you do not need to install it manually, however if you like to call it with [python] or [python3], install the metapackage.
root@dlp:~ #
which python3.9

/usr/local/bin/python3.9
root@dlp:~ #
python3.9 -V

Python 3.9.18
root@dlp:~#
pkg install -y python
root@dlp:~#
python -V

Python 3.9.18

# verify to create a test script

root@dlp:~#
echo -e "import sys\nprint(sys.version)" > python_test.py

root@dlp:~#
python python_test.py

3.9.18 (main, Nov 30 2023, 01:13:45)
[Clang 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1
Matched Content