wiki:qnap
QNAP
1. 使用python3
在app界面安装了python3之后,进入ssh命令行,输入以下内容,启用python3
[~] # cat /etc/profile.d/python3.bash _PYTHON3_QPKG_CONF=/etc/config/qpkg.conf _PYTHON3_QPKG_NAME="Python3" _PYTHON3_QPKG_ROOT=$(/sbin/getcfg $_PYTHON3_QPKG_NAME Install_Path -f ${_PYTHON3_QPKG_CONF}) _PYTHON3_QPKG_BIN="${_PYTHON3_QPKG_ROOT}/python3/bin" echo "${PATH}" | grep -q ${_PYTHON3_QPKG_BIN} || export PATH=${_PYTHON3_QPKG_BIN}:${PATH} [~] # source /etc/profile.d/python3.bash [~] # python3 Python 3.10.4 (main, May 6 2022, 08:42:24) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>> exit() [~] #
wiki/qnap.txt · 最后更改: 2023/10/27 08:42 由 zhangguo