问题:

在Linux中我安装了python3.X,但其实本身里自带python2.X
然后我又安装了vs code,这时要在vs code中配置python3.x所在目录,想找出python3安装的目录,但又忘记了,自己手动找只找到了python2.x

解决方法:

使用 whereis 命令,该方法同样适用于寻找其它安装的软件

[root@liujing usr]# whereis python3
python3: /usr/bin/python3 /usr/local/python3