欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

通过 mdfind 来查找 所有的 python 所在的路径 自己亲自做的 有大用 有大大用 有大大大用

luxshare-ict@shipingzhong-vmware-mac ~ % mdfind python | grep -E  "python$"     
/usr/local/Homebrew/Library/Homebrew/test/language/python
/Users/luxshare-ict/Desktop/Old_Homebrew/2025-01-16 19:27:15/usr/local/Homebrew/Homebrew/Library/Homebrew/test/language/python
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
/usr/share/file/magic/python
/usr/share/zsh/5.8.1/functions/_python


luxshare-ict@shipingzhong-vmware-mac ~ % mdfind python | grep -E  "python2\.\d+$"
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7


luxshare-ict@shipingzhong-vmware-mac ~ % mdfind python | grep -E  "python3\.\d+$"
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/bin/python3.9
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/bin/python3.8


普通分类: