Mac 下 安装Python3,,因为Mac系统自带P
Mac 下 安装Python3,,因为Mac系统自带P
因为Mac系统自带Python2.7 所以我们开发要重新装Python3
直接运行下面就好
luohaotiandeMacBook-Pro:~ luohaotian$ which python/usr/bin/pythonluohaotiandeMacBook-Pro:~ luohaotian$ cd /usr/local/bin/luohaotiandeMacBook-Pro:bin luohaotian$ lsbrew lz4 perlthanks ptardiff svnrdumpcnpm lz4c piconv ptargrep svnservecorelist lz4cat pl2pm shasum svnsynccpan node pod2html splain svnversionenc2xs npm pod2man svn unlz4encguess npx pod2text svnadmin vueh2ph perl pod2usage svnbench vue-inith2xs perl5.30.0 podchecker svndumpfilter vue-listinstmodsh perlbug podselect svnfsfs webpackjson_pp perldoc prove svnlook xsubpplibnetcfg perlivp ptar svnmucc zipdetailsluohaotiandeMacBook-Pro:bin luohaotian$ python -VPython 2.7.10luohaotiandeMacBook-Pro:bin luohaotian$ brew search python3==> Formulaeboost-python3 python3 python@3luohaotiandeMacBook-Pro:bin luohaotian$ brew install python3Updating Homebrew...==> Auto-updated Homebrew!Updated 1 tap (homebrew/core).==> Updated Formulaejdupes mk-configure==> Installing dependencies for python: gdbm and xz==> Installing python dependency: gdbm==> Downloading https://homebrew.bintray.com/bottles/gdbm-1.18.1.mojave.bottle.1######################################################################## 100.0%==> Pouring gdbm-1.18.1.mojave.bottle.1.tar.gz?? /usr/local/Cellar/gdbm/1.18.1: 20 files, 586.8KB==> Installing python dependency: xz==> Downloading https://homebrew.bintray.com/bottles/xz-5.2.4.mojave.bottle.tar.==> Downloading from https://akamai.bintray.com/01/010667293df282c8bceede3bcd369######################################################################## 100.0%==> Pouring xz-5.2.4.mojave.bottle.tar.gz?? /usr/local/Cellar/xz/5.2.4: 92 files, 1MB==> Installing python==> Downloading https://homebrew.bintray.com/bottles/python-3.7.3.mojave.bottle.==> Downloading from https://akamai.bintray.com/25/25e0099852136c4ef1efd221247d0######################################################################## 100.0%==> Pouring python-3.7.3.mojave.bottle.tar.gz==> /usr/local/Cellar/python/3.7.3/bin/python3 -s setup.py --no-user-cfg install==> /usr/local/Cellar/python/3.7.3/bin/python3 -s setup.py --no-user-cfg install==> /usr/local/Cellar/python/3.7.3/bin/python3 -s setup.py --no-user-cfg install==> CaveatsPython has been installed as /usr/local/bin/python3Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to`python3`, `python3-config`, `pip3` etc., respectively, have been installed into /usr/local/opt/python/libexec/binIf you need Homebrew's Python 2.7 run brew install python@2You can install Python packages with pip3 install <package>They will install into the site-package directory /usr/local/lib/python3.7/site-packagesSee: https://docs.brew.sh/Homebrew-and-Python==> Summary?? /usr/local/Cellar/python/3.7.3: 3,863 files, 59.8MB==> Caveats==> pythonPython has been installed as /usr/local/bin/python3Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to`python3`, `python3-config`, `pip3` etc., respectively, have been installed into /usr/local/opt/python/libexec/binIf you need Homebrew's Python 2.7 run brew install python@2You can install Python packages with pip3 install <package>They will install into the site-package directory /usr/local/lib/python3.7/site-packagesSee: https://docs.brew.sh/Homebrew-and-PythonluohaotiandeMacBook-Pro:bin luohaotian$ brew info python3python: stable 3.7.3 (bottled), HEADInterpreted, interactive, object-oriented programming languagehttps://www.python.org//usr/local/Cellar/python/3.7.3 (3,863 files, 59.8MB) * Poured from bottle on 2019-06-04 at 18:24:52From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/python.rb==> DependenciesBuild: pkg-config ?Required: gdbm ?, openssl ?, readline ?, sqlite ?, xz ?==> Options--HEAD Install HEAD version==> CaveatsPython has been installed as /usr/local/bin/python3Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to`python3`, `python3-config`, `pip3` etc., respectively, have been installed into /usr/local/opt/python/libexec/binIf you need Homebrew's Python 2.7 run brew install python@2You can install Python packages with pip3 install <package>They will install into the site-package directory /usr/local/lib/python3.7/site-packagesSee: https://docs.brew.sh/Homebrew-and-Python==> Analyticsinstall: 378,873 (30 days), 1,357,511 (90 days), 4,253,975 (365 days)install_on_request: 181,954 (30 days), 660,530 (90 days), 2,431,795 (365 days)build_error: 0 (30 days)luohaotiandeMacBook-Pro:bin luohaotian$
Mac 下 安装Python3
相关内容
- 编写高效内存Python代码的3个技巧,
- 用Python分析14425条死亡公司数据 看十年创业公司消亡史
- 从事自动化测试哪种编程语言更好?当然是python,,编程
- python 运行sum函数的使用,,sum(iterab
- python 获取本机IP的三种方式,,python获取本机
- Python接口自动化测试之pytest与unittest区别,, 引言
- python3中的unicode_escape,,一. 响应的两种方式
- Python 中 open() 的 mode 参数总结,,参考 :http:/
- python 查看目录下所有目录和文件,,python查看目录
- 盘点Python编程中Dict和Set常用用法,
评论关闭