adrien

因为Mac系统自带Python2.7 所以我们开发要重新装Python3

直接运行下面就好

luohaotiandeMacBook-Pro:~ luohaotian$ which python
/usr/bin/python
luohaotiandeMacBook-Pro:~ luohaotian$ cd /usr/local/bin/
luohaotiandeMacBook-Pro:bin luohaotian$ ls
brew		lz4		perlthanks	ptardiff	svnrdump
cnpm		lz4c		piconv		ptargrep	svnserve
corelist	lz4cat		pl2pm		shasum		svnsync
cpan		node		pod2html	splain		svnversion
enc2xs		npm		pod2man		svn		unlz4
encguess	npx		pod2text	svnadmin	vue
h2ph		perl		pod2usage	svnbench	vue-init
h2xs		perl5.30.0	podchecker	svndumpfilter	vue-list
instmodsh	perlbug		podselect	svnfsfs		webpack
json_pp		perldoc		prove		svnlook		xsubpp
libnetcfg	perlivp		ptar		svnmucc		zipdetails
luohaotiandeMacBook-Pro:bin luohaotian$ python -V
Python 2.7.10
luohaotiandeMacBook-Pro:bin luohaotian$ brew search python3
==> Formulae
boost-python3              python3                    python@3
luohaotiandeMacBook-Pro:bin luohaotian$ brew install python3
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
jdupes                                   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

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-11-30
  • 2021-05-01
  • 2021-06-02
  • 2021-10-02
  • 2021-10-19
猜你喜欢
  • 2022-01-01
  • 2021-06-29
  • 2021-04-07
  • 2021-12-15
  • 2021-05-14
  • 2021-10-29
相关资源
相似解决方案