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就可以了

原文地址:https://www.cnblogs.com/may18/p/12496834.html