mac下安装python3
1.先用brew search命令查看
brew search python3
结果如下所示:
==> Formulae
boost-python3 python3 python@3
If you meant "python3" specifically:
It was migrated from homebrew/cask to homebrew/core.
2.使用brew install 命令安装
brew install python3
安装过程如下:
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 5 taps (openresty/brew, homebrew/cask-versions, homebrew/core, homebrew/cask and homebrew/services).
==> New Formulae
alp coinutils kepubify now-cli scs
appium cpl kubebuilder numpy@1.16 shadowenv
arduino-cli cpu_features kyma-cli nushell starship
asyncplusplus dafny lazydocker octant tflint
atasm dhall-bash lerna open-image-denoise tmuxinator
aws-cdk diffr libsigc++@2 pastel traefik@1
aws-google-auth dive libsixel pdfcpu wagyu
base91 fastmod libspng pdftk-java whalebrew
bazelisk faust libtensorflow@1 pnetcdf wiiuse
benthos ghc@8.6 libvncserver pokerstove wtfutil
berglas git-delta lightgbm protobuf@3.7 xgboost
bitwise git-revise llvm@8 pulp zrepl
borgmatic gleam minizip2 pygments
broot go-md2man msgpack-tools quickjs
clp go@1.12 mysql-connector-c++@1.1 ripgrep-all
codespell grpc-swift notifiers scc
==> Updated Formulae
apr-util ✔ flowgrind librealsense qpdf
argon2 ✔ fluid-synth librsvg qpid-proton
aspell ✔ fluxctl librsync qrupdate
boost ✔ flyway libsass qscintilla2
cmake ✔ fmt libsbol qsoas
composer ✔ fn libsecret qt
etcd ✔ folly libsigc++ quantlib
freetds ✔ fontforge libsignal-protocol-c quicktype
freetype ✔ fonttools libslax r
gearman ✔ fork-cleaner libsoup rabbitmq
git ✔ fossil libssh rabbitmq-c
glib ✔ fpp libssh2 radare2
go ✔ fq libstatgrab rakudo
graphicsmagick ✔ fragroute libstrophe rancher-cli
imagemagick ✔ freediameter libtasn1 range-v3
kafka ✔ freeipmi libtensorflow rc
kubernetes-cli ✔ freeradius-server libtins rclone
libevent ✔ fribidi libtorrent-rasterbar rdesktop
libpq ✔ frpc libtrace re-flex
mysql ✔ frps libu2f-host re2
nginx ✔ frugal libu2f-server re2c
node ✔ fs-uae libusb rebar3
nsq ✔ fselect libuv recon-ng
openresty/brew/openresty ✔ fstrm libvirt redex
openresty/brew/openresty-openssl ✔ fuse-emulator libvisio redo
openssl ✔ fuse-zip libvmaf redsocks
openssl@1.1 ✔ futhark libvoikko remarshal
php@7.1 ✔ fwup libvpx remctl
pyenv ✔ gambit-scheme libvterm rename
readline ✔ gammaray libwebsockets reop
redis ✔ gammu libxkbcommon repo
scons ✔ gatsby-cli libxml++ reposurgeon
source-highlight ✔ gauche libxml++3 rex
sqlite ✔ gauge libxmlsec1 riemann
tmux ✔ gcab libzdb riff
webp ✔ gcc lightning ripgrep
zookeeper ✔ gcsfuse lighttpd rke
zsh-completions ✔ gdal link-grammar rmlint
abcm2ps gdcm linkerd robot-framework
abcmidi gdk-pixbuf links rom-tools
abyss gdl liquibase root
ace gdub liquid-dsp roswell
ack geant4 lldpd rpm
acpica geckodriver llvm rpm2cpio
activemq gedit llvm@7 rsyslog
activemq-cpp geographiclib lmdb rtags
adwaita-icon-theme geoipupdate lmod rtmpdump
afflib geos lnav ruby
afl-fuzz geoserver log4cplus ruby-build
agedu gerbil-scheme log4shib ruby@2.4
aircrack-ng get_iplayer logcheck ruby@2.5
alexjs getdns logrotate rush
algernon getmail logstash rust
aliyun-cli getxbook logtalk rustup-init
allure ghc lolcat s-lang
alpine ghex lsd s-nail
amap ghostscript lsof s2geometry
amazon-ecs-cli ghr luarocks s3-backer
ammonite-repl gibo luvit s3ql
amqp-cpp gifski lxc s6
amtk ginac lynx sagittarius-scheme
angband git-absorb lz4 saldl
angle-grinder git-annex mackup salt
angular-cli git-cola macvim sane-backends
anjuta git-crypt mafft saxon
annie git-extras mage sbcl
ansible git-lfs magic-wormhole sbjson
ansible-lint git-quick-stats mailutils sblim-sfcc
ansible@1.9 git-secret makensis sbt
ansible@2.0 git-series makepkg scala
ansiweather gitbucket mame scala@2.12
ant gitg mariadb scalaenv
antibody gitlab-gem mariadb-connector-c scalapack
anycable-go gitlab-runner mariadb-connector-odbc scamper
apache-arrow gitleaks mariadb@10.0 sccache
apache-arrow-glib gitmoji mariadb@10.1 scdoc
apache-flink gitup mariadb@10.2 scipy
apache-geode gitversion mariadb@10.3 scrcpy
apache-spark gjs math-comp screen
apache-zeppelin gkrellm maven screenfetch
apib glade mawk scrypt
appscale-tools glances maxwell scw
aptly glib-networking mbedtls sdhash
aqbanking glib-openssl md5sha1sum sdl2
arangodb glibmm mdbook sdl2_image
aravis glide mdds sdlpop
aria2 globus-toolkit media-info ser2net
armadillo glooctl mediaconch serf
armor gloox mednafen serverless
arpack gmic megacmd sf-pwgen
arping gmime megatools sflowtool
asdf gmsh memcached shadowsocks-libev
asio gmt memcacheq shairport
ask-cli gnome-builder menhir shairport-sync
astrometry-net gnome-latex mercurial shared-mime-info
atk gnome-recipes mesa shellcheck
atkmm gnu-apl meson shellharden
atlantis gnumeric mesos shellinabox
atomist-cli gnunet metabase shibboleth-sp
ats2-postiats gnupg metaproxy ship
auditbeat gnupg-pkcs11-scd metricbeat shogun
augustus gnuradio mfterm siege
autorest gnutls mg signal-cli
avfs go-bindata mgba sile
avro-c go-jira micronaut silk
avro-cpp go@1.11 midnight-commander simh
avro-tools gobby mill simple-scan
aws-okta gobject-introspection miller singular
aws-sdk-cpp gocryptfs mingw-w64 sip
awscli godep minio sipsak
axel goffice minio-mc siril
azure-cli golang-migrate miniserve sispmctl
azure-storage-cpp goofys minizinc sk
b2-tools gopass mit-scheme skaffold
babel goreleaser mitmproxy skafos
babeld goreman mkcert skinny
babl gosu mkl-dnn skopeo
bacula-fd gpac mktorrent sleuthkit
badtouch gpgme mkvtoolnix slowhttptest
balena-cli gphoto2 mlkit slrn
ballerina gpsim mmark smali
baobab gradio mmseqs2 sn0int
bareos-client gradle moarvm snakemake
basex grafana mockserver snapcraft
bash grails moco sngrep
bash-snippets grakn modgit snort
bat graph-tool modules snownews
bazel graphene moe socat
bbftp-client graphviz molecule sofia-sip
bcftools grok monero softhsm
bear groonga monetdb solarus
bedops groovy mongo-c-driver solr
bedtools groovysdk mongoose sonar-scanner
bee grpc monit sonarqube
berkeley-db grpcurl monitoring-plugins sonarqube-lts
bettercap grt monkeysphere sonobuoy
bibtexconv gsettings-desktop-schemas mono sops
bigloo gsl mosh sourcekitten
binaryen gsmartcontrol mosquitto sourcery
bind gsoap mp3cat spdlog
bindfs gspell mpg123 spdylay
biogeme gst-editing-services mpop speedtest-cli
bison gst-libav mrboom sphinx
bit gst-plugins-bad msitools sphinx-doc
bitchx gst-plugins-base msmtp spice-gtk
bitcoin gst-plugins-good mtr spim
bitrise gst-plugins-ugly mupdf spin
bitwarden-cli gst-python mutt spiped
black gst-rtsp-server mycli spirv-cross
blink1 gst-validate mydumper sqlcipher
bluepill gstreamer mypy sqldiff
blueutil gstreamermm mysql++ sqlite-analyzer
bnd gtk+3 mysql-client sqlmap
boost-bcp gtk-doc mysql-connector-c++ squashfs
boost-build gtk-mac-integration mysql@5.7 squid
boost-mpi gtk-vnc mysqltuner src
boost-python gtkmm mytop srt
boost-python3 gtkmm3 n ssh-audit
botan gtksourceview3 nagios ssh-permit-a38
breezy gtksourceview4 nagios-plugins sshfs
bro gtksourceviewmm nano sshguard
btfs gtksourceviewmm3 nanopb-generator ssldump
btparse gtkspell3 nativefier sslsplit
btpd gtmess nats-server sstp-client
buildifier gtranslator nats-streaming-server stanford-parser
buildkit gupnp-tools ncdc stella
buku gwenhywfar ncdu step
bundletool gwyddion ncmpcpp stern
burp gxml nco stgit
byacc h2o ncrack stolon
bzip2 h3 ncview stone-soup
bzt hadolint ne storm
c-blosc hadoop needle stow
cabal-install hamlib neo4j streamlink
cadaver hapi-fhir-cli neofetch stress-ng
caddy haproxy neomutt strongswan
caf harfbuzz neon stunnel
caffe hashcat neovim stuntman
cairomm hashpump net-snmp subnetcalc
cake haskell-stack netdata subversion
calcurse hbase netlify-cli subversion@1.8
calicoctl hcloud newman suil
camlp4 hebcal newsboat suite-sparse
camlp5 heimdal newt sundials
cargo-completion helmfile nfdump supervisor
cash-cli helmsman nghttp2 svgo
catch2 help2man ngircd svtplay-dl
ccache hexyl nickle swagger-codegen
ccls hfstospell nim swagger-codegen@2
ceres-solver hg-fast-export nlohmann-json swaks
cern-ndiff hidapi nmap swi-prolog
certbot highlight nmh swift-protobuf
certstrap hive nnn swiftformat
cfn-lint hledger node-build swiftlint
cfr-decompiler hlint node@10 swig
cfssl homebank node@8 sylpheed
cgal hqx nomad sync_gateway
cgdb htmldoc nopoll syncthing
cglm htpdate noti synfig
cgrep http_load nqp sysbench
chakra httpd nrpe sysdig
chamber httperf nsd tag
chapel httpie nspr talloc
charm-tools httping nss tarantool
checkbashisms httrack ntl tarsnap
checkstyle hub ntp taskell
chipmunk hugo nu tbb
chronograf hwloc nuget tcl-tk
cimg hydra numpy tcpdump
circleci hyperfine nvm tcpflow
citus hyperkit nwchem tdlib
cjdns hyperscan nylon tealdeer
ckan hypre nyx tectonic
clamav i2p nzbget telegraf
clang-format i2pd oath-toolkit telegram-cli
clhep i386-elf-gcc ocaml teleport
clib i386-elf-gdb ocaml-findlib template-glib
click i386-elf-grub ocaml-num tenyr
clingo icarus-verilog ocamlbuild tepl
cloc icdiff ocamlsdl termius
clojure ice ocproxy termtosvg
closure-compiler icecast ocrad terraform
clutter-gtk icecream ocrmypdf terraform-inventory
cmix icemon octave terraformer
cmus idris ode terragrunt
cnats igv odpi terrahub
cockroach ike-scan offlineimap tesseract
cocoapods imagemagick@6 ola testdisk
cointop imageoptim-cli omega texinfo
collectd imap-uw omniorb thors-serializer
collector-sidecar imapfilter oniguruma thrift
commandbox inform6 onscripter tika
compcert inlets ooniprobe tile38
conan innotop opa tinc
configen insect opam tintin
conjure-up instead open-jtalk tiny-fugue
consul interactive-rebase-tool open-mesh tinyxml2
consul-template intercal open-mpi tmate
contentful-cli internetarchive open-zwave tmpreaper
convox io openapi-generator tmuxinator-completion
coq ios-sim openblas todoman
coturn ios-webkit-debug-proxy opencoarrays tokei
cppcheck iperf opencolorio tomcat
cpprestsdk iperf3 openconnect tomcat-native
cql ipfs opencv tomcat@7
credstash ipmitool opencv@2 tomcat@8
creduce ipopt opencv@3 tomee-plus
cromwell iproute2mac openfortivpn tomee-webprofile
crowdin ipv6calc openhmd topgit
cryptol ipython openimageio topgrade
crystal ircd-hybrid openjazz tor
crystal-icr ircii openkim-models tox
csound irssi openldap traefik
csvq iso-codes openrct2 trafficserver
cubelib ispc openresty/brew/openresty-debug transcrypt
cucumber-cpp istioctl opensaml translate-shell
curl isync opensc translate-toolkit
curl-openssl janet openshift-cli triton
cxxopts jboss-forge openssh ttyd
cypher-shell jdupes opentracing-cpp tunnel
cython jemalloc openttd tvnamer
dartsim jena openvdb twarc
datamash jenkins openvpn twemcache
dav1d jenkins-lts operator-sdk twine-pypi
davix jetty ophcrack txr
davmail jfrog-cli-go opusfile typescript
dbhash jhead orc u-boot-tools
dbmate jhipster orc-tools ucloud
dbus jing-trang ori udunits
dcd jinja2-cli osc uftp
dcm2niix jlog oscats unbound
dcmtk john-jumbo osm-gps-map ungit
dcos-cli joplin osmium-tool unrar
ddgr jose osqp unrtf
deark jpeg-turbo osquery unshield
debianutils jruby osslsigncode unzip
deno jsdoc3 ott upscaledb
dependency-check jsoncpp overmind uptimed
desktop-file-utils jsonnet owfs urh
devspace jsonrpc-glib oxipng uriparser
dhall juise p11-kit uwsgi
dhall-json juju p7zip v2ray-plugin
di jvgrep packer v8
dialog k3d packer-completion vala
diamond k6 pagmo valabind
dieharder kafkacat paket valgrind
diff-pdf kahip pandoc-citeproc vapoursynth
diff-so-fancy kakoune pango vapoursynth-imwri
diffoscope kcov pangomm vapoursynth-ocr
digdag kerl parallel vapoursynth-sub
direvent kibana passenger varnish
diskus kim-api pazpar2 vault
distcc klavaro pc6001vx vault-cli
dita-ot knot pcb2gcode vaulted
django-completion kobalt pcsc-lite vegeta
dmd kops pdal velero
dmg2img kore pdf2json verilator
dnscrypt-proxy kotlin pdfcrack vert.x
dnscrypt-wrapper krakend pdftoipe vfuse
dnsperf krb5 pdns vgmstream
dnstwist ktlint pdnsrec vifm
dnsviz kube-aws pegtl vim
docfx kubeaudit percona-server vim@7.4
docker kubecfg percona-toolkit vimpc
docker-completion kubectx percona-xtrabackup vips
docker-compose kubeprod perltidy virgil
docker-credential-helper kubernetes-helm petsc visp
docker-credential-helper-ecr kubernetes-service-catalog-client petsc-complex vit
docker-machine kubeseal pev vitetris
docker-machine-completion kubespy pgbadger vmtouch
doctl kustomize pgbouncer vnstat
docutils kvazaar pgcli volatility
doitlive lablgtk pgformatter vte3
dos2unix lammps pgroonga vtk
dosbox landscaper pgweb vttest
dosbox-x languagetool phoronix-test-suite vulkan-headers
dovecot lasso php wabt
doxygen lastpass-cli php-code-sniffer wandio
dpkg launchdns php-cs-fixer wartremover
drafter lazygit php@7.2 watchexec
drone-cli lcm phpmd watchman
dscanner ldapvi phpmyadmin watson
dtc ldc phpstan wcslib
dub ldid phpunit wdc
duck ldns picard-tools webdis
duo_unix lean-cli pijul webpack
duplicity ledger pilosa websocat
dyld-headers lego pinboard-notes-backup webtorrent-cli
dylibbundler lf pioneer weechat
dynamips lftp pip-completion wgetpaste
dynare lgogdownloader pipx whois
ecasound libarchive pius widelands
eccodes libbi pjproject wine
efl libbitcoin pkcs11-helper winetricks
eiffelstudio libbitcoin-blockchain planck wireguard-go
ejabberd libbitcoin-client plantuml wireguard-tools
ekg2 libbitcoin-consensus platformio wiremock-standalone
elasticsearch libbitcoin-database platypus wireshark
elektra libbitcoin-explorer pmd wla-dx
eless libbitcoin-network png++ wolfssl
elinks libbitcoin-node pngquant wp-cli
elixir libbitcoin-protocol poco wp-cli-completion
elm-format libbitcoin-server podofo wsk
emacs libbluray pony-stable wskdeploy
embree libcaca ponyc wtf
embulk libcouchbase poppler wxmac
emscripten libdap postgis wxmaxima
encfs libdazzle postgresql x11vnc
enchant libdvbpsi postgresql@10 x264
entr libevhtp postgresql@9.4 x265
envconsul libewf postgresql@9.5 x3270
epic5 libexosip postgresql@9.6 xa
eprover libfabric postgrest xapian
epubcheck libfaketime ppsspp xcodegen
eralchemy libfreefare pre-commit xdot
erlang libftdi prefixsuffix xmake
erlang@20 libgcrypt presto xml-security-c
erlang@21 libgda prips xml-tooling-c
eslint libgee procs xmount
esptool libgig procyon-decompiler xmrig
ethereum libgit2 profanity xonsh
ettercap libglademm proftpd xorriso
evince libgnomecanvasmm proguard xrootd
exa libgphoto2 proj xsimd
exempi libgweather prometheus xtensor
exercism libhdhomerun proteinortho xxhash
exiftool libheif protobuf yaml-cpp
exim libical protobuf-c yamllint
exiv2 libimagequant protobuf-swift yank
expat libimobiledevice protobuf@3.6 yapf
exploitdb libiodbc protoc-gen-go yara
faas-cli libiscsi prototool yarn
fabio libjson-rpc-cpp proxytunnel yash
fabric libjwt pspg yaws
fastjar liblcf psqlodbc yaz
fasttext liblockfile pulledpork ydcv
faudio libmaa pulseaudio yelp-tools
fauna-shell libmatio pulumi ykman
fb-client libmodbus pumba ykpers
fd libmowgli pure-ftpd yosys
fdroidserver libmxml pushpin you-get
feedgnuplot libmypaint putty youtube-dl
feh liboauth puzzles z3
fetchmail libogg pwntools zabbix
ffmpeg libomp pwsafe zabbix-cli
ffmpeg@2.8 libopendkim pybind11 zbackup
ffmpegthumbnailer libopenmpt pygobject3 zboy
ffsend libosinfo pyinstaller zelda-roth-se
fibjs libosip pypy zeromq
file-roller libosmium pypy3 zig
findutils libp11 pyqt zim
fio libpcap pyside zimg
firebase-cli libpeas python zint
flac libphonenumber python-markdown znc
flake8 libpqxx python@2 zola
flashrom libpulsar pyvim zsdx
flatcc libqalculate qalculate-gtk zshdb
flawfinder libraw qca zstd
flintrock librdkafka qemu zsxd
flow libre qmmp zurl
==> Renamed Formulae
confluent-oss -> confluent-platform transmission -> transmission-cli
==> Deleted Formulae
mongodb ✔ freetds@0.91 libguess mongodb@3.2 percona-server-mongodb taisei
cclive ftimes liblacewing mongodb@3.4 pincaster thc-pptp-bruter
cherokee httest libopkele mongodb@3.6 postgres-xc tlsdate
csup irods llvm@3.9 mysql-cluster protobuf@3.1 tn5250
ctunnel konoha llvm@5 nordugrid-arc skipfish voms
engine_pkcs11 kontena lysp packetbeat smlnj xar-mackyle
frag_find libggz mongodb@3.0 pbrt supersonic
==> Installing dependencies for python: gdbm, openssl@1.1, readline, sqlite and xz
==> Installing python dependency: gdbm
==> Downloading https://homebrew.bintray.com/bottles/gdbm-1.18.1.mojave.bottle.1.tar.gz
######################################################################## 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: openssl@1.1
==> Downloading https://homebrew.bintray.com/bottles/openssl@1.1-1.1.1d.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/10/104ef018b7bb8fcc49f57e5a60359a28a02d480d85a959e6141394b0571cbb28?__gda__=exp=1571035679~hmac=e
######################################################################## 100.0%
==> Pouring openssl@1.1-1.1.1d.mojave.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
/usr/local/etc/openssl@1.1/certs
and run
/usr/local/opt/openssl@1.1/bin/c_rehash
openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,
because openssl/libressl is provided by macOS so don't link an incompatible version.
If you need to have openssl@1.1 first in your PATH run:
echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> ~/.bash_profile
For compilers to find openssl@1.1 you may need to set:
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
For pkg-config to find openssl@1.1 you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
==> Summary
? /usr/local/Cellar/openssl@1.1/1.1.1d: 7,983 files, 17.9MB
==> Installing python dependency: readline
==> Downloading https://homebrew.bintray.com/bottles/readline-8.0.1.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/3c/3c754391e9d243835811d128771ca0f1a565024100fd2c2871534353d46aaf0e?__gda__=exp=1571035697~hmac=e
######################################################################## 100.0%
==> Pouring readline-8.0.1.mojave.bottle.tar.gz
==> Caveats
readline is keg-only, which means it was not symlinked into /usr/local,
because macOS provides the BSD libedit library, which shadows libreadline.
In order to prevent conflicts when programs look for libreadline we are
defaulting this GNU Readline installation to keg-only.
For compilers to find readline you may need to set:
export LDFLAGS="-L/usr/local/opt/readline/lib"
export CPPFLAGS="-I/usr/local/opt/readline/include"
For pkg-config to find readline you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/readline/lib/pkgconfig"
==> Summary
? /usr/local/Cellar/readline/8.0.1: 48 files, 1.5MB
==> Installing python dependency: sqlite
==> Downloading https://homebrew.bintray.com/bottles/sqlite-3.29.0.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/5f/5f2f8f36a8d13733b0374ac39bdcd32dea10315e7442b9bb9942465487cb7811?__gda__=exp=1571035701~hmac=e
######################################################################## 100.0%
==> Pouring sqlite-3.29.0.mojave.bottle.tar.gz
==> Caveats
sqlite is keg-only, which means it was not symlinked into /usr/local,
because macOS provides an older sqlite3.
If you need to have sqlite first in your PATH run:
echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> ~/.bash_profile
For compilers to find sqlite you may need to set:
export LDFLAGS="-L/usr/local/opt/sqlite/lib"
export CPPFLAGS="-I/usr/local/opt/sqlite/include"
For pkg-config to find sqlite you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/sqlite/lib/pkgconfig"
==> Summary
? /usr/local/Cellar/sqlite/3.29.0: 11 files, 3.9MB
==> Installing python dependency: xz
==> Downloading https://homebrew.bintray.com/bottles/xz-5.2.4.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/01/010667293df282c8bceede3bcd36953dd57c56cef608d09a5b50694ab7d4b96b?__gda__=exp=1571035706~hmac=b
######################################################################## 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.4_1.mojave.bottle.1.tar.gz
==> Downloading from https://akamai.bintray.com/38/387e32b735f3273bee16e8d8d20686ac40bd81e642a7e3d13cd21966698a4b77?__gda__=exp=1571035710~hmac=0
######################################################################## 100.0%
==> Pouring python-3.7.4_1.mojave.bottle.1.tar.gz
==> /usr/local/Cellar/python/3.7.4_1/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python/3
==> /usr/local/Cellar/python/3.7.4_1/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python/3
==> /usr/local/Cellar/python/3.7.4_1/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python/3
==> Caveats
Python has been installed as
/usr/local/bin/python3
Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
/usr/local/opt/python/libexec/bin
If you need Homebrew's Python 2.7 run
brew install python@2
You can install Python packages with
pip3 install <package>
They will install into the site-package directory
/usr/local/lib/python3.7/site-packages
See: https://docs.brew.sh/Homebrew-and-Python
==> Summary
? /usr/local/Cellar/python/3.7.4_1: 3,958 files, 60.5MB
==> Caveats
==> openssl@1.1
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
/usr/local/etc/openssl@1.1/certs
and run
/usr/local/opt/openssl@1.1/bin/c_rehash
openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,
because openssl/libressl is provided by macOS so don't link an incompatible version.
If you need to have openssl@1.1 first in your PATH run:
echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> ~/.bash_profile
For compilers to find openssl@1.1 you may need to set:
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
For pkg-config to find openssl@1.1 you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
==> readline
readline is keg-only, which means it was not symlinked into /usr/local,
because macOS provides the BSD libedit library, which shadows libreadline.
In order to prevent conflicts when programs look for libreadline we are
defaulting this GNU Readline installation to keg-only.
For compilers to find readline you may need to set:
export LDFLAGS="-L/usr/local/opt/readline/lib"
export CPPFLAGS="-I/usr/local/opt/readline/include"
For pkg-config to find readline you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/readline/lib/pkgconfig"
==> sqlite
sqlite is keg-only, which means it was not symlinked into /usr/local,
because macOS provides an older sqlite3.
If you need to have sqlite first in your PATH run:
echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> ~/.bash_profile
For compilers to find sqlite you may need to set:
export LDFLAGS="-L/usr/local/opt/sqlite/lib"
export CPPFLAGS="-I/usr/local/opt/sqlite/include"
For pkg-config to find sqlite you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/sqlite/lib/pkgconfig"
==> python
Python has been installed as
/usr/local/bin/python3
Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
/usr/local/opt/python/libexec/bin
If you need Homebrew's Python 2.7 run
brew install python@2
You can install Python packages with
pip3 install <package>
They will install into the site-package directory
/usr/local/lib/python3.7/site-packages
See: https://docs.brew.sh/Homebrew-and-Python
至此,安装完毕。