1.查看当前python解释器
python
import sys
sys.executable
2. 查看所有python的路径:
whereis python
3.查看当前使用的python路径
which python
方法1和3的输出结果相同
1.查看当前python解释器
python
import sys
sys.executable
2. 查看所有python的路径:
whereis python
3.查看当前使用的python路径
which python
方法1和3的输出结果相同