1. 查看本机是否安装python
python -version
2. 查看安装位置
import sys sys.executable
查看python的安装位置
原文:https://www.cnblogs.com/Jesse-Li/p/11168299.html