|
1.进入相关Python版本,进入python版本,例如安装python3.7;
- #cd /usr/ports/lang/python37
复制代码
2.执行下面命令进行安装;
3.执行过程中选项保持默认即可;
安装完成后执
即可进入python环境
- root@server1:/usr/ports/lang/python37 # python3.7
- Python 3.7.10 (default, Jun 26 2021, 01:15:06)
- [Clang 11.0.1 (<a href="mailto:git@github.com">git@github.com</a>:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c on freebsd13
- Type "help", "copyright", "credits" or "license" for more information.
- >>>
复制代码
到此安装完成;
|
|