We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python3
安装Python后端警告:
==> Caveats Python has been installed as /opt/homebrew/bin/python3.10 Unversioned and major-versioned symlinks `python`, `python3`, `python-config`, `python3-config`, `pip`, `pip3`, etc. pointing to `python3.10`, `python3.10-config`, `pip3.10` etc., respectively, have been installed into /opt/homebrew/opt/python@3.10/libexec/bin You can install Python packages with pip3.10 install <package> They will install into the site-package directory /opt/homebrew/lib/python3.10/site-packages tkinter is no longer included with this formula, but it is available separately: brew install python-tk@3.10 If you do not need a specific version of Python, and always want Homebrew's `python3` in your PATH: brew install python3 See: https://docs.brew.sh/Homebrew-and-Python
查看
% where python3 /Library/Frameworks/Python.framework/Versions/3.10/bin/python3 /opt/homebrew/bin/python3 /usr/local/bin/python3 /usr/bin/python3
/Library/Frameworks/Python.framework/Versions/3.10/bin/python3
/opt/homebrew/bin/python3
/usr/local/bin/python3
/usr/bin/python3
PATH
/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打开文件检查下。
vi ~/.bash_profile
pyenv
Simple Python Version Management
The text was updated successfully, but these errors were encountered:
安装方式有很多方式:
Sorry, something went wrong.
这里还可以补一个win系统上可以使用的包管理工具。chocolatey 类似mac上的homebrew
No branches or pull requests
安装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: