mac查看python的安装路径

1、终端: 

which python/python3

 

 

 

2、终端:

python/python3  --->import sys  ----> print sys.path/print(sys.path)

 

如何进入路径

Mac下/usr/local目录默认是对于Finder是隐藏,如果需要到/usr/local下去,打开Finder,然后使用command+shift+G,在弹出的目录中填写/usr/local就可以了

 查看第三方库的安装路径

/Users/mac/Library/Python/3.9/lib/python

posted @ 2020-03-15 12:16  yimu-yimu  阅读(5168)  评论(0编辑  收藏  举报