You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
==>CaveatsPythonhasbeeninstalledas/opt/homebrew/bin/python3.10Unversionedandmajor-versionedsymlinks`python`,`python3`,`python-config`,`python3-config`,`pip`,`pip3`,etc.pointingto`python3.10`,`python3.10-config`,`pip3.10`etc.,respectively,havebeeninstalledinto/opt/homebrew/opt/python@3.10/libexec/binYoucaninstallPythonpackageswithpip3.10install<package>Theywillinstallintothesite-packagedirectory/opt/homebrew/lib/python3.10/site-packagestkinterisnolongerincludedwiththisformula,butitisavailable separately:
brewinstallpython-tk@3.10IfyoudonotneedaspecificversionofPython,andalwayswantHomebrew's `python3` in your PATH:
brewinstallpython3See: https://docs.brew.sh/Homebrew-and-Python
安装Python后端警告:
查看
/Library/Frameworks/Python.framework/Versions/3.10/bin/python3
是原始文件目录;/opt/homebrew/bin/python3
和/usr/local/bin/python3
都是软链接,他们都指向/Library/Frameworks/Python.framework/Versions/3.10/bin/python3
;/usr/bin/python3
是可执行文件(参考UnderstandingPATH
)。Issues/Concern:
1. 好些地方都有python包:
/Library/Frameworks/Python.framework/Versions
/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions
执行文件
/usr/bin/python3
如何找到他们的?【根据环境变量PATH
指定的目录列表查找】/usr/bin/python3 --version
和/usr/local/bin/python3 --version
不一致后者(
/usr/local/bin/python3
)只是个软链接,说明它的执行文件并没有在环境变量里,或者环境变量里Python的配置是其他版本的。vi ~/.bash_profile
打开文件检查下。pyenv
参考
The text was updated successfully, but these errors were encountered: