怎么查看python安装路径https://jingyan.baidu.com/article/e3c78d648fd32e3c4c85f587.html
方法1
打开命令行,输入:where is python
方法2
查看Python安装路径https://www.cnblogs.com/geeksongs/p/10648044.html
- 在安装python和vscode的情况下,打开vscode,创建一份py文件
如果没有安装sys库,需要在桌面任务窗口输入cmd进入命令行,输入以下命令安装sys模块
pip install sys
- 在vscode中创建打开任意一份py文件,输入以下命令并执行,就能知道安装的位置
import sys
print(sys.path)