FreeBSD 15

Python 3.10 : インストール2026/01/15

 

Python をインストールします。

[1] Python 3.10 をインストールします。
root@dlp:~#
pkg install -y python310
Updating FreeBSD-ports repository catalogue...
FreeBSD-ports repository is up to date.
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
All repositories are up to date.
The following 4 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        gettext-runtime: 0.23.1 [FreeBSD-ports]
        libffi: 3.5.1 [FreeBSD-ports]
        mpdecimal: 4.0.1 [FreeBSD-ports]
        python310: 3.10.18 [FreeBSD-ports]

.....
.....

root@dlp:~#
python3.10 -V

Python 3.10.18

# verify to create a test script

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

root@dlp:~#
python3.10 python_test.py

3.10.18 (main, Dec 18 2025, 01:16:48) [Clang 19.1.7 (https://github.com/llvm/llvm-project.git llvmorg-19.1.7-0-gcd7080
関連コンテンツ