mac|mac os 使用 brew 安装指定版本的 python 解释器
【mac|mac os 使用 brew 安装指定版本的 python 解释器】使用如下命令安装:
brew install python@3.8
安装好之后会有如下的输出:
Python has been installed as
/opt/homebrew/opt/python@3.8/bin/python3Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
/opt/homebrew/opt/python@3.8/libexec/binYou can install Python packages with
/opt/homebrew/opt/python@3.8/bin/pip3 install They will install into the site-package directory
/opt/homebrew/lib/python3.8/site-packagesSee: https://docs.brew.sh/Homebrew-and-Pythonpython@3.8 is keg-only, which means it was not symlinked into /opt/homebrew,
because this is an alternate version of another formula.If you need to have python@3.8 first in your PATH, run:
echo 'export PATH="/opt/homebrew/opt/python@3.8/bin:$PATH"' >> ~/.zshrcFor compilers to find python@3.8 you may need to set:
export LDFLAGS="-L/opt/homebrew/opt/python@3.8/lib"
关于
LDFLAGS
请参考 :https://www.cnblogs.com/taski...推荐阅读
- 由浅入深理解AOP
- Mac安装Chromedriver
- 【译】20个更有效地使用谷歌搜索的技巧
- mybatisplus如何在xml的连表查询中使用queryWrapper
- MybatisPlus|MybatisPlus LambdaQueryWrapper使用int默认值的坑及解决
- MybatisPlus使用queryWrapper如何实现复杂查询
- MAC安装Mongo
- 如何在Mac中的文件选择框中打开系统隐藏文件夹
- iOS中的Block
- Linux下面如何查看tomcat已经使用多少线程