Linux 系统中的 Python 编程环境
- 1. Python 版本
- 2. Python 安装路径
- References
1. Python 版本
strong@foreverstrong:~$ python -V
Python 2.7.12
strong@foreverstrong:~$ python --version
Python 2.7.12
strong@foreverstrong:~$
strong@foreverstrong:~$ python3 -V
Python 3.5.2
strong@foreverstrong:~$ python3 --version
Python 3.5.2
strong@foreverstrong:~$
strong@foreverstrong:~$ python
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
strong@foreverstrong:~$
strong@foreverstrong:~$ python3
Python 3.5.2 (default, Sep 14 2017, 22:51:06)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
strong@foreverstrong:~$
2. Python 安装路径
strong@foreverstrong:~$ which python
/usr/bin/python
strong@foreverstrong:~$
strong@foreverstrong:~$ which python3
/usr/bin/python3
References
[1] Yongqiang Cheng, https://yongqiang.blog.csdn.net/