如何在 pfSense 上安装 python3

首先,使用 sshroot 身份登录到你的 pfSense。

然后使用

pkg_search.sh
pkg search python

显示可用的 python 版本。pfSense 2.6.0 上的输出:

pkg_search_output.txt
frr7-pythontools-7.5.1_3       Provide configuration reload functionality for FRR
py38-gitpython-3.1.24          Python Git Library
python38-3.8.12_1              Interpreted object-oriented programming language

现在运行例如

pkg_install_python38.sh
pkg install python38-3.8.12_1

在我的 pfSense 上,python3.8 已经安装了。

记住要运行 python,你需要显式运行 python3.8,只运行 pythonpython3 不行!


Check out similar posts by category: Networking, Python