Python环境搭建
来自ARM Wiki
- 系统中一般已经集成python,查看默认使用的Python版本号
1 root@norco:/ # python -V 2 Python 2.7.16
- 查看系统中支持的python版本,使用如下命令
1 root@norco:/ # ls -al /usr/bin/python* 2 lrwxrwxrwx 1 root root 7 Mar 17 2021 /usr/bin/python -> python2 3 lrwxrwxrwx 1 root root 14 Mar 17 2021 /usr/bin/python-config -> python2-config 4 lrwxrwxrwx 1 root root 9 Mar 17 2021 /usr/bin/python2 -> python2.7 5 lrwxrwxrwx 1 root root 16 Mar 17 2021 /usr/bin/python2-config -> python2.7-config 6 -rwxr-xr-x 1 root root 6144 Dec 26 14:14 /usr/bin/python2.7 7 -rwxr-xr-x 1 root root 1681 Dec 26 10:33 /usr/bin/python2.7-config 8 lrwxrwxrwx 1 root root 9 Mar 17 2021 /usr/bin/python3 -> python3.7 9 -rwxr-xr-x 1 root root 6144 Dec 26 09:51 /usr/bin/python3.7 10 -rwxr-xr-x 1 root root 6144 Dec 26 09:51 /usr/bin/python3.7m 11 -rwxr-xr-x 1 root root 2023 Dec 26 09:50 /usr/bin/python3.7m-config-lib