気付けばもう軽く10年以上使っているMacBook Air (13-inch, Mid 2013)でちょっと遊んでみようとPython3をセットアップしようとしたら意外と面倒だったので作業記録を残しておくことにします。
デイバス
モデル:MacBook Air (13-inch, Mid 2013)
機種ID:MacBookAir6,2
最終対応のオペレーティングシステム:macOS Big Sur(※2024年末でサポ切れ🥺)
技術仕様:MacBook Air(13-inch, Mid 2013)
作業記録
Homebrewば現時点での最新バージョンまで上げました。
mba:~$ brew --version Homebrew 4.5.2 Homebrew/homebrew-core (git revision c5976bed6c1; last commit 2025-05-11) Homebrew/homebrew-cask (git revision 2e4492a5808; last commit 2025-05-11)
pythonは、もはやいつインストールしたか覚えてない古いのが入ってました。
mba:~$ python --version Python 2.7.16(2021年7月15日サポ切れ)
ということでpython3をセットアップします。
mba:~$ brew install python3 python@3.13 3.7.5 is already installed but outdated (so it will be upgraded). Warning: You are using macOS 11. We (and Apple) do not provide support for this old version. This is a Tier 3 configuration: https://docs.brew.sh/Support-Tiers#tier-3 Do not report any issues to Homebrew/* repositories! Read the above document instead before opening any issues or PRs. ==> Fetching dependencies for python@3.13: mpdecimal, ca-certificates, openssl@3, readline, sqlite, xz, pkgconf, lzip and expat ==> Fetching mpdecimal ==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/c5976bed6c1703d4233a97d117934eaf0750274b/Formula/m/mpdecimal.rb ##################################################################################################################################################################################################### 100.0% ==> Downloading https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-4.0.1.tar.gz ##################################################################################################################################################################################################### 100.0% ==> Fetching ca-certificates ==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/manifests/2025-02-25 ##################################################################################################################################################################################################### 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/blobs/sha256:8f46fb05f753f80f2bc398c0a24b10d680bd77d496e2b931de0b61998e37aebc ##################################################################################################################################################################################################### 100.0% ==> Fetching openssl@3 ==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/c5976bed6c1703d4233a97d117934eaf0750274b/Formula/o/openssl@3.rb ##################################################################################################################################################################################################### 100.0% ==> Downloading https://github.com/openssl/openssl/releases/download/openssl-3.5.0/openssl-3.5.0.tar.gz ==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/7634677/2eea5d52-f337-454f-ba38-2e866f5994e0?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseasse ##################################################################################################################################################################################################### 100.0% ==> Fetching readline ==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/c5976bed6c1703d4233a97d117934eaf0750274b/Formula/r/readline.rb ##################################################################################################################################################################################################### 100.0% ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2-patches/readline82-001 ##################################################################################################################################################################################################### 100.0% ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2-patches/readline82-002 ##################################################################################################################################################################################################### 100.0% ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2-patches/readline82-003 ##################################################################################################################################################################################################### 100.0% ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2-patches/readline82-004 ##################################################################################################################################################################################################### 100.0% ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2-patches/readline82-005 ##################################################################################################################################################################################################### 100.0% ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2-patches/readline82-006 ##################################################################################################################################################################################################### 100.0% ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2-patches/readline82-007 ##################################################################################################################################################################################################### 100.0% ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2-patches/readline82-008 ##################################################################################################################################################################################################### 100.0% ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2-patches/readline82-009 ##################################################################################################################################################################################################### 100.0% ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2-patches/readline82-010 ##################################################################################################################################################################################################### 100.0% ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2-patches/readline82-011 ##################################################################################################################################################################################################### 100.0% ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2-patches/readline82-012 ##################################################################################################################################################################################################### 100.0% ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2-patches/readline82-013 ##################################################################################################################################################################################################### 100.0% ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2.tar.gz ##################################################################################################################################################################################################### 100.0% ==> Fetching sqlite ==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/c5976bed6c1703d4233a97d117934eaf0750274b/Formula/s/sqlite.rb ##################################################################################################################################################################################################### 100.0% ==> Downloading https://www.sqlite.org/2025/sqlite-autoconf-3490200.tar.gz ##################################################################################################################################################################################################### 100.0% ==> Fetching xz ==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/c5976bed6c1703d4233a97d117934eaf0750274b/Formula/x/xz.rb ##################################################################################################################################################################################################### 100.0% ==> Downloading https://github.com/tukaani-project/xz/releases/download/v5.8.1/xz-5.8.1.tar.gz ==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/553665726/b4e0a8ab-1ca0-4700-96c0-5f40d8f0ae89?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseas ##################################################################################################################################################################################################### 100.0% ==> Fetching pkgconf ==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/c5976bed6c1703d4233a97d117934eaf0750274b/Formula/p/pkgconf.rb ##################################################################################################################################################################################################### 100.0% ==> Downloading https://distfiles.ariadne.space/pkgconf/pkgconf-2.4.3.tar.xz ##################################################################################################################################################################################################### 100.0% ==> Fetching lzip ==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/c5976bed6c1703d4233a97d117934eaf0750274b/Formula/l/lzip.rb ##################################################################################################################################################################################################### 100.0% ==> Downloading https://download-mirror.savannah.gnu.org/releases/lzip/lzip-1.25.tar.gz ##################################################################################################################################################################################################### 100.0% ==> Fetching expat ==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/c5976bed6c1703d4233a97d117934eaf0750274b/Formula/e/expat.rb ##################################################################################################################################################################################################### 100.0% ==> Downloading https://github.com/libexpat/libexpat/releases/download/R_2_7_1/expat-2.7.1.tar.lz ==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/80314213/8620f79a-521e-43fa-a280-ea2239b0c167?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseass ##################################################################################################################################################################################################### 100.0% ==> Installing python@3.13 dependency: lzip Error: Your Xcode (10.1) at /Applications/Xcode.app is too outdated. Please update to Xcode 13.2.1 (or delete it). Xcode can be updated from the App Store. Error: Xcode alone is not sufficient on Big Sur. Install the Command Line Tools: xcode-select --install
はい、エラー(x2)です。各個撃破していきます。
まずはXcodeから。
言われたとおりXcodeをバージョンアップしたいのですが、残念ながら古くなったXcode 13.2.1はApp Storeからはもう取得できないようなのでAppleのDeveloperサイトのダウンロードページから該当バージョンのものを探してインストールする必要があります。
巨大なファイル(10.01 GB)なのでダウンロードも解凍もすごく時間がかかります。気長に作業しましょう。
次は指示どおりコマンドラインツールを実行してインストールします。
mba:~$ xcode-select --install xcode-select: note: install requested for command line developer tools
ここまで完了したらPython3インストールをリトライします。
mba:~$ brew install python3 Error: You have not agreed to the Xcode license. Please resolve this by running: sudo xcodebuild -license accept
おっと、またエラーです。
指示通り先ほどインストールしたXcode 13.2.1のライセンスのアクセプトを完了させます。
mba:~$ sudo xcodebuild -license accept Password:●●●●●●
気を取り直してPython3インストールを再リトライします。
mba:~$ brew install python3 ==> Downloading https://formulae.brew.sh/api/formula.jws.json ==> Downloading https://formulae.brew.sh/api/cask.jws.json python@3.13 3.7.5 is already installed but outdated (so it will be upgraded). Warning: You are using macOS 11. We (and Apple) do not provide support for this old version. This is a Tier 3 configuration: https://docs.brew.sh/Support-Tiers#tier-3 Do not report any issues to Homebrew/* repositories! Read the above document instead before opening any issues or PRs. ==> Fetching dependencies for python@3.13: mpdecimal, ca-certificates, openssl@3, readline, sqlite, xz, pkgconf, lzip and expat ==> Fetching mpdecimal ==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/c537a72ca9e5af8a2922b2f0b8083b543582c9cb/Formula/m/mpdecimal.rb ##################################################################################################################################################################################################### 100.0% ==> Downloading https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-4.0.1.tar.gz Already downloaded: /Users/xxxxxxxxx/Library/Caches/Homebrew/downloads/de81d45d656755dc758aa95bb88e99cc95bd3c0bbc7c3fc6c852576f4e5b01cc--mpdecimal-4.0.1.tar.gz ==> Fetching ca-certificates ==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/manifests/2025-02-25 Already downloaded: /Users/xxxxxxxxx/Library/Caches/Homebrew/downloads/6c1debb525d4dc6007afae4cd2b772105111632b22fc28506550f6dfe27c6d52--ca-certificates-2025-02-25.bottle_manifest.json ==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/blobs/sha256:8f46fb05f753f80f2bc398c0a24b10d680bd77d496e2b931de0b61998e37aebc Already downloaded: /Users/xxxxxxxxx/Library/Caches/Homebrew/downloads/50c52ec06796c09a75e7a9484e6db3205765a935a486322e3795612fd23b405e--ca-certificates--2025-02-25.all.bottle.tar.gz ==> Fetching openssl@3 ==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/c537a72ca9e5af8a2922b2f0b8083b543582c9cb/Formula/o/openssl@3.rb ##################################################################################################################################################################################################### 100.0% ==> Downloading https://github.com/openssl/openssl/releases/download/openssl-3.5.0/openssl-3.5.0.tar.gz Already downloaded: /Users/xxxxxxxxx/Library/Caches/Homebrew/downloads/7671fc790a3b588e6d502fc00d334cdb86d8c677cf4358323cc3e7648cf4241d--openssl-3.5.0.tar.gz ==> Fetching readline ==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/c537a72ca9e5af8a2922b2f0b8083b543582c9cb/Formula/r/readline.rb ##################################################################################################################################################################################################### 100.0% ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2-patches/readline82-001 Already downloaded: /Users/xxxxxxxxx/Library/Caches/Homebrew/downloads/8f4cd1b000569d71bbb49566dc53fa3774e04f9f8829402ea2ee8283d0fe04a1--readline82-001 ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2-patches/readline82-002 Already downloaded: /Users/xxxxxxxxx/Library/Caches/Homebrew/downloads/0d6e5043bc5aef4dc90cfc70625aeb16e7ac3f0b921750ff655b29bccfedfbea--readline82-002 ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2-patches/readline82-003 Already downloaded: /Users/xxxxxxxxx/Library/Caches/Homebrew/downloads/02b4ff2dcede6771ffd73279413faa777ba4682446ba6a79bb9e8a71d8b03caf--readline82-003 ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2-patches/readline82-004 Already downloaded: /Users/xxxxxxxxx/Library/Caches/Homebrew/downloads/fc9301ab2f04d3aeda625c18007a69fb1ab37a4d45813bd9baec7745a78c6ab9--readline82-004 ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2-patches/readline82-005 Already downloaded: /Users/xxxxxxxxx/Library/Caches/Homebrew/downloads/00a0b8f3cb3bafa66c11534e34123ae5b53eb2653015f60b2266be17cba95ea1--readline82-005 ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2-patches/readline82-006 Already downloaded: /Users/xxxxxxxxx/Library/Caches/Homebrew/downloads/b4e6cfe4609276d4eda1987b1b83e2cf22ec013baf9c8c95eac7c3fcf295a750--readline82-006 ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2-patches/readline82-007 Already downloaded: /Users/xxxxxxxxx/Library/Caches/Homebrew/downloads/323518491bffe6a24bbe7d91c888eff86cf90d6803bc77bda99b165cf6218d18--readline82-007 ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2-patches/readline82-008 Already downloaded: /Users/xxxxxxxxx/Library/Caches/Homebrew/downloads/626d12f6255507a2d06a29e60b09ac0005a8a7c22dabfa04a456e4e293713bb0--readline82-008 ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2-patches/readline82-009 Already downloaded: /Users/xxxxxxxxx/Library/Caches/Homebrew/downloads/25c999bb7a8df4cd2037958483901f2a595e1a2c0668cbc033ddb3e251df8223--readline82-009 ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2-patches/readline82-010 Already downloaded: /Users/xxxxxxxxx/Library/Caches/Homebrew/downloads/ca913fa24988bb1f278b2de32d3a830f2ff79564944e19c214c2f3492ba549a4--readline82-010 ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2-patches/readline82-011 Already downloaded: /Users/xxxxxxxxx/Library/Caches/Homebrew/downloads/1d69210897bc6b911e6fe25cb19e7073b36d121100fe19528fae9490fad05013--readline82-011 ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2-patches/readline82-012 Already downloaded: /Users/xxxxxxxxx/Library/Caches/Homebrew/downloads/9ad62b844fe8cfb5f3fa6c425fb9f4e78a471a172e5973be7dea349d8bfe1c33--readline82-012 ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2-patches/readline82-013 Already downloaded: /Users/xxxxxxxxx/Library/Caches/Homebrew/downloads/ba00d79322014c18925b3ca3e306d0c37acbff6e2ceb199e2a752c468f8da54f--readline82-013 ==> Downloading https://ftp.gnu.org/gnu/readline/readline-8.2.tar.gz Already downloaded: /Users/xxxxxxxxx/Library/Caches/Homebrew/downloads/36ad701a297ee809015add3ddd50c365157d54017e6bec9668d61b0b3382daf3--readline-8.2.tar.gz ==> Fetching sqlite ==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/c537a72ca9e5af8a2922b2f0b8083b543582c9cb/Formula/s/sqlite.rb ##################################################################################################################################################################################################### 100.0% ==> Downloading https://www.sqlite.org/2025/sqlite-autoconf-3490200.tar.gz Already downloaded: /Users/xxxxxxxxx/Library/Caches/Homebrew/downloads/eea37f6ef8bb993e015a4d0e0aca0a4c859e99deccb58f8f8e36f27a383f76f7--sqlite-autoconf-3490200.tar.gz ==> Fetching xz ==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/c537a72ca9e5af8a2922b2f0b8083b543582c9cb/Formula/x/xz.rb ##################################################################################################################################################################################################### 100.0% ==> Downloading https://github.com/tukaani-project/xz/releases/download/v5.8.1/xz-5.8.1.tar.gz Already downloaded: /Users/xxxxxxxxx/Library/Caches/Homebrew/downloads/f716b14a72b232f1726d651f8710fc1286738f58673b8a8ed70c34674e0a06e2--xz-5.8.1.tar.gz ==> Fetching pkgconf ==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/c537a72ca9e5af8a2922b2f0b8083b543582c9cb/Formula/p/pkgconf.rb ##################################################################################################################################################################################################### 100.0% ==> Downloading https://distfiles.ariadne.space/pkgconf/pkgconf-2.4.3.tar.xz Already downloaded: /Users/xxxxxxxxx/Library/Caches/Homebrew/downloads/d4f63c2624e72b785c96c8ab998eff9dbad8f874a1edbead950eb7ba67875384--pkgconf-2.4.3.tar.xz ==> Fetching lzip ==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/c537a72ca9e5af8a2922b2f0b8083b543582c9cb/Formula/l/lzip.rb ##################################################################################################################################################################################################### 100.0% ==> Downloading https://download-mirror.savannah.gnu.org/releases/lzip/lzip-1.25.tar.gz Already downloaded: /Users/xxxxxxxxx/Library/Caches/Homebrew/downloads/01b3ba1475fe67700ae14a0a2841dd12eafcf0f4296a050a1d6ba20ca31f7ffd--lzip-1.25.tar.gz ==> Fetching expat ==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/c537a72ca9e5af8a2922b2f0b8083b543582c9cb/Formula/e/expat.rb ##################################################################################################################################################################################################### 100.0% ==> Downloading https://github.com/libexpat/libexpat/releases/download/R_2_7_1/expat-2.7.1.tar.lz Already downloaded: /Users/xxxxxxxxx/Library/Caches/Homebrew/downloads/a40a44a47be31067cd2e8504e0e38e3c6316275564e12eec602fb8e4c79110f3--expat-2.7.1.tar.lz ==> Installing python@3.13 dependency: lzip ==> ./configure CXX=clang++ CXXFLAGS= ==> make check ==> make install 🍺 /usr/local/Cellar/lzip/1.25: 11 files, 233.6KB, built in 1 minute 14 seconds ==> Fetching dependencies for python@3.13: mpdecimal, openssl@3, readline, sqlite, xz, pkgconf and expat ==> Fetching python@3.13 ==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/c537a72ca9e5af8a2922b2f0b8083b543582c9cb/Formula/p/python@3.13.rb ##################################################################################################################################################################################################### 100.0% ==> Downloading https://raw.githubusercontent.com/Homebrew/formula-patches/8b5bcbb262d1ea4e572bba55043bf7d2341a6821/python/3.13-sysconfig.diff ##################################################################################################################################################################################################### 100.0% ==> Downloading https://files.pythonhosted.org/packages/69/59/b6fc2188dfc7ea4f936cd12b49d707f66a1cb7a1d2c16172963534db741b/flit_core-3.12.0.tar.gz ##################################################################################################################################################################################################### 100.0% ==> Downloading https://files.pythonhosted.org/packages/70/53/b309b4a497b09655cb7e07088966881a57d082f48ac3cb54ea729fd2c6cf/pip-25.0.1.tar.gz ##################################################################################################################################################################################################### 100.0% ==> Downloading https://files.pythonhosted.org/packages/a9/5a/0db4da3bc908df06e5efae42b44e75c81dd52716e10192ff36d0c1c8e379/setuptools-78.1.0.tar.gz ##################################################################################################################################################################################################### 100.0% ==> Downloading https://files.pythonhosted.org/packages/8a/98/2d9906746cdc6a6ef809ae6338005b3f21bb568bea3165cfc6a243fdc25c/wheel-0.45.1.tar.gz ##################################################################################################################################################################################################### 100.0% ==> Downloading https://www.python.org/ftp/python/3.13.3/Python-3.13.3.tgz ##################################################################################################################################################################################################### 100.0% ==> Upgrading python3 -> 3.13.3 ==> Installing dependencies for python@3.13: pkgconf, mpdecimal, ca-certificates, openssl@3, readline, sqlite, xz and expat ==> Installing python@3.13 dependency: pkgconf ==> ./configure --disable-silent-rules --with-pkg-config-dir=/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/11 --with-system-i ==> make ==> make install Error: The `brew link` step did not complete successfully The formula built, but is not symlinked into /usr/local Could not symlink bin/pkg-config Target /usr/local/bin/pkg-config is a symlink belonging to pkg-config. You can unlink it: brew unlink pkg-config To force the link and overwrite all conflicting files: brew link --overwrite pkgconf To list all files that would be deleted: brew link --overwrite pkgconf --dry-run Possible conflicting files are: /usr/local/bin/pkg-config -> /usr/local/Cellar/pkg-config/0.28/bin/pkg-config /usr/local/share/aclocal/pkg.m4 -> /usr/local/Cellar/pkg-config/0.28/share/aclocal/pkg.m4 /usr/local/share/man/man1/pkg-config.1 -> /usr/local/Cellar/pkg-config/0.28/share/man/man1/pkg-config.1 ==> Summary 🍺 /usr/local/Cellar/pkgconf/2.4.3: 27 files, 424.5KB, built in 1 minute 26 seconds ==> Installing python@3.13 dependency: mpdecimal ==> ./configure ==> make ==> make install 🍺 /usr/local/Cellar/mpdecimal/4.0.1: 22 files, 631.1KB, built in 1 minute 4 seconds ==> Installing python@3.13 dependency: ca-certificates ==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/manifests/2025-02-25 Already downloaded: /Users/xxxxxxxxx/Library/Caches/Homebrew/downloads/6c1debb525d4dc6007afae4cd2b772105111632b22fc28506550f6dfe27c6d52--ca-certificates-2025-02-25.bottle_manifest.json ==> Pouring ca-certificates--2025-02-25.all.bottle.tar.gz ==> Regenerating CA certificate bundle from keychain, this may take a while... 🍺 /usr/local/Cellar/ca-certificates/2025-02-25: 4 files, 235.9KB ==> Installing python@3.13 dependency: openssl@3 ==> perl ./Configure --prefix=/usr/local/Cellar/openssl@3/3.5.0 --openssldir=/usr/local/etc/openssl@3 --libdir=lib no-ssl3 no-ssl3-method no-zlib darwin64-x86_64-cc enable-ec_nistp_64_gcc_128 ==> make ==> make install MANDIR=/usr/local/Cellar/openssl@3/3.5.0/share/man MANSUFFIX=ssl ==> make HARNESS_JOBS=4 test TESTS=-test_afalg ==> Downloading https://formulae.brew.sh/api/formula.jws.json 🍺 /usr/local/Cellar/openssl@3/3.5.0: 7,554 files, 36MB, built in 24 minutes 6 seconds ==> Installing python@3.13 dependency: readline ==> Patching ==> Applying readline82-001 ==> Applying readline82-002 ==> Applying readline82-003 ==> Applying readline82-004 ==> Applying readline82-005 ==> Applying readline82-006 ==> Applying readline82-007 ==> Applying readline82-008 ==> Applying readline82-009 ==> Applying readline82-010 ==> Applying readline82-011 ==> Applying readline82-012 ==> Applying readline82-013 ==> ./configure --with-curses ==> make install SHLIB_LIBS=-lcurses 🍺 /usr/local/Cellar/readline/8.2.13: 51 files, 1.7MB, built in 1 minute 3 seconds ==> Installing python@3.13 dependency: sqlite ==> ./configure --enable-readline --disable-editline --enable-session --with-readline-cflags=-I/usr/local/opt/readline/include --with-readline-ldflags=-L/usr/local/opt/readline/lib -lreadline ==> make install 🍺 /usr/local/Cellar/sqlite/3.49.2: 13 files, 4.7MB, built in 1 minute 41 seconds ==> Installing python@3.13 dependency: xz ==> ./configure --disable-silent-rules --disable-nls ==> make check ==> make install 🍺 /usr/local/Cellar/xz/5.8.1: 96 files, 2.5MB, built in 1 minute 59 seconds ==> Installing python@3.13 dependency: expat ==> ./configure --mandir=/usr/local/Cellar/expat/2.7.1/share/man ==> make install 🍺 /usr/local/Cellar/expat/2.7.1: 23 files, 660.9KB, built in 53 seconds ==> Installing python@3.13 ==> Patching ==> Applying 3.13-sysconfig.diff ==> ./configure --enable-ipv6 --datarootdir=/usr/local/Cellar/python@3.13/3.13.3/share --datadir=/usr/local/Cellar/python@3.13/3.13.3/share --without-ensurepip --enable-loadable-sqlite-extensions --with-o ==> make ==> make install PYTHONAPPSDIR=/usr/local/Cellar/python@3.13/3.13.3 ==> make frameworkinstallextras PYTHONAPPSDIR=/usr/local/Cellar/python@3.13/3.13.3/share/python@3.13 ==> /usr/local/Cellar/python@3.13/3.13.3/bin/python3.13 -m venv /private/tmp/pythonA3.13-20250512-34034-8vs88d/Python-3.13.3/whl_build ==> /private/tmp/pythonA3.13-20250512-34034-8vs88d/Python-3.13.3/whl_build/bin/pip3 install -v --no-binary :all: --no-index . ==> /private/tmp/pythonA3.13-20250512-34034-8vs88d/Python-3.13.3/whl_build/bin/pip3 install -v --no-binary :all: --no-index . ==> /private/tmp/pythonA3.13-20250512-34034-8vs88d/Python-3.13.3/whl_build/bin/pip3 install -v --no-binary :all: --no-index . ==> /private/tmp/pythonA3.13-20250512-34034-8vs88d/Python-3.13.3/whl_build/bin/pip3 wheel -v --no-binary :all: --no-index --wheel-dir=/usr/local/Cellar/python@3.13/3.13.3/libexec . ==> /private/tmp/pythonA3.13-20250512-34034-8vs88d/Python-3.13.3/whl_build/bin/pip3 wheel -v --no-binary :all: --no-index --wheel-dir=/usr/local/Cellar/python@3.13/3.13.3/Frameworks/Python.framework/Versi ==> /usr/local/Cellar/python@3.13/3.13.3/bin/python3.13 -Im ensurepip ==> /usr/local/Cellar/python@3.13/3.13.3/bin/python3.13 -Im pip install -v --no-index --upgrade --isolated --target=/usr/local/Cellar/python@3.13/3.13.3/lib/python3.13/site-packages /usr/local/Cellar/pyth ==> Caveats Python is installed as /usr/local/bin/python3 Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to `python3`, `python3-config`, `pip3` etc., respectively, are installed into /usr/local/opt/python@3.13/libexec/bin See: https://docs.brew.sh/Homebrew-and-Python ==> Summary 🍺 /usr/local/Cellar/python@3.13/3.13.3: 9,261 files, 205.6MB, built in 22 minutes 3 seconds ==> Running `brew cleanup python@3.13`... Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`). Removing: /usr/local/Cellar/python/3.7.5... (4,009 files, 61.4MB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/python@3.13--flit-core--3.12.0.tar.gz... (52.4KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/python@3.13--patch--e1c2699cf3e39731a19207ed69400a67336cda7767aa08f6f46029f26b1d733b.diff... (1.7KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/python@3.13--pip--25.0.1.tar.gz... (1.9MB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/python@3.13--setuptools--78.1.0.tar.gz... (1.3MB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/python@3.13--wheel--0.45.1.tar.gz... (105KB) Warning: The following dependents of upgraded formulae are outdated but will not be upgraded because they are not bottled: socat putty ==> No outdated dependents to upgrade! ==> Checking for dependents of upgraded formulae... Disable this behaviour by setting HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`). ==> No broken dependents to reinstall! ==> `brew cleanup` has not been run in the last 30 days, running now... Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`). Removing: /usr/local/Cellar/pkg-config/0.28... (10 files, 588.4KB) Removing: /usr/local/Cellar/readline/6.3.8... (46 files, 2MB) Removing: /usr/local/Cellar/readline/7.0.3_1... (46 files, 1.5MB) Removing: /usr/local/Cellar/readline/8.0.1... (48 files, 1.5MB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/readline--patch--1ea434957d6ec3a7b61763f1f3552dad0ebdd6754d65888b5cd6d80db3a788a8... (5.6KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/readline--patch--24f587ba46b46ed2b1868ccaf9947504feba154bb8faabd4adaea63ef7e6acb0... (1.2KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/readline--patch--3d9885e692e1998523fd5c61f558cecd2aafd67a07bd3bfe1d7ad5a31777a116... (2.2KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/readline--patch--5911a5b980d7900aabdbee483f86dab7056851e6400efb002776a0a4a1bab6f6... (1.4KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/readline--patch--622ba387dae5c185afb4b9b20634804e5f6c1c6e5e87ebee7c35a8f065114c99... (1.5KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/readline--patch--6c8adf8ed4a2ca629f7fd11301ed6293a6248c9da0c674f86217df715efccbd3... (2.8KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/readline--patch--758e2ec65a0c214cfe6161f5cde3c5af4377c67d820ea01d13de3ca165f67b4c... (2.6KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/readline--patch--79572eeaeb82afdc6869d7ad4cba9d4f519b1218070e17fa90bbecd49bd525ac... (1.7KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/readline--patch--a177edc9d8c9f82e8c19d0630ab351f3fd1b201d655a1ddb5d51c4cee197b26a... (1.7KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/readline--patch--bbf97f1ec40a929edab5aa81998c1e2ef435436c597754916e6a5868f273aff7... (1.2KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/readline--patch--c7b45ff8c0d24d81482e6e0677e81563d13c74241f7b86c4de00d239bc81f5a1... (3.0KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/readline--patch--e0013d907f3a9e6482cc0934de1bd82ee3c3c4fd07a9646aa9899af237544dd7... (1.8KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/readline--patch--e06503822c62f7bc0d9f387d4c78c09e0ce56e53872011363c74786c7cd4c053... (1.1KB) Removing: /usr/local/Cellar/sqlite/3.30.1... (11 files, 3.9MB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/trivy--0.24.4.tar.gz... (15.4MB) Removing: /usr/local/Cellar/xz/5.2.4... (92 files, 1MB) ==> Autoremoving 1 unneeded formula: gdbm Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/portable-ruby-2.6.8.yosemite.bottle.tar.gz... (8.8MB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/pip_cache... (10 files, 3.1MB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/api-source/Homebrew/homebrew-core/357177b96309c7b84f9b3782b6e005d3106bdc47/Formula/expat.rb... (2.8KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/api-source/Homebrew/homebrew-core/357177b96309c7b84f9b3782b6e005d3106bdc47/Formula/lzip.rb... (2.0KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/api-source/Homebrew/homebrew-core/357177b96309c7b84f9b3782b6e005d3106bdc47/Formula/mpdecimal.rb... (2.4KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/api-source/Homebrew/homebrew-core/357177b96309c7b84f9b3782b6e005d3106bdc47/Formula/openssl@3.rb... (7.3KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/api-source/Homebrew/homebrew-core/357177b96309c7b84f9b3782b6e005d3106bdc47/Formula/pkgconf.rb... (3.8KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/api-source/Homebrew/homebrew-core/357177b96309c7b84f9b3782b6e005d3106bdc47/Formula/readline.rb... (5KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/api-source/Homebrew/homebrew-core/357177b96309c7b84f9b3782b6e005d3106bdc47/Formula/sqlite.rb... (3.2KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/api-source/Homebrew/homebrew-core/357177b96309c7b84f9b3782b6e005d3106bdc47/Formula/xz.rb... (2.4KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/api-source/Homebrew/homebrew-core/c5976bed6c1703d4233a97d117934eaf0750274b/Formula/expat.rb... (2.8KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/api-source/Homebrew/homebrew-core/c5976bed6c1703d4233a97d117934eaf0750274b/Formula/lzip.rb... (2.0KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/api-source/Homebrew/homebrew-core/c5976bed6c1703d4233a97d117934eaf0750274b/Formula/mpdecimal.rb... (2.4KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/api-source/Homebrew/homebrew-core/c5976bed6c1703d4233a97d117934eaf0750274b/Formula/openssl@3.rb... (7.3KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/api-source/Homebrew/homebrew-core/c5976bed6c1703d4233a97d117934eaf0750274b/Formula/pkgconf.rb... (3.8KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/api-source/Homebrew/homebrew-core/c5976bed6c1703d4233a97d117934eaf0750274b/Formula/readline.rb... (5KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/api-source/Homebrew/homebrew-core/c5976bed6c1703d4233a97d117934eaf0750274b/Formula/sqlite.rb... (3.2KB) Removing: /Users/xxxxxxxxx/Library/Caches/Homebrew/api-source/Homebrew/homebrew-core/c5976bed6c1703d4233a97d117934eaf0750274b/Formula/xz.rb... (2.4KB) Removing: /Users/xxxxxxxxx/Library/Logs/Homebrew/trivy... (120B) Removing: /usr/local/lib/python3.7/site-packages/__pycache__/easy_install.cpython-37.pyc... (283B) Removing: /usr/local/lib/python3.7/site-packages/__pycache__/sitecustomize.cpython-37.pyc... (1.4KB) Removing: /usr/local/lib/python3.7/site-packages/__pycache__/six.cpython-37.pyc... (26KB) Pruned 4 symbolic links and 57 directories from /usr/local ==> Caveats ==> python@3.13 Python is installed as /usr/local/bin/python3 Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to `python3`, `python3-config`, `pip3` etc., respectively, are installed into /usr/local/opt/python@3.13/libexec/bin See: https://docs.brew.sh/Homebrew-and-Python
やっと成功したようです。
内容を確認してみます。
mba:~$ brew info python ==> python@3.13: stable 3.13.3 Interpreted, interactive, object-oriented programming language https://www.python.org/ Installed /usr/local/Cellar/python@3.13/3.13.3 (9,261 files, 205.6MB) * Built from source on 2025-05-12 at 00:44:04 From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/p/python@3.13.rb License: Python-2.0 ==> Dependencies Build: pkgconf ✔ Required: mpdecimal ✔, openssl@3 ✔, sqlite ✔, xz ✔, expat ✔ ==> Caveats Python is installed as /usr/local/bin/python3 Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to `python3`, `python3-config`, `pip3` etc., respectively, are installed into /usr/local/opt/python@3.13/libexec/bin See: https://docs.brew.sh/Homebrew-and-Python ==> Analytics install: 281,199 (30 days), 795,137 (90 days), 1,961,168 (365 days) install-on-request: 101,394 (30 days), 280,367 (90 days), 555,344 (365 days) build-error: 607 (30 days)
大丈夫そうですね。
最後にパスを通せば完了です。
mba:~$ vi ~/.bash_profile -- ### for Python export PATH="/usr/local/bin/python3:$PATH" export PATH="/usr/local/opt/python@3.13/libexec/bin:$PATH"
最新の設定を読み込ませます。
mba:~$ source ~/.bash_profile
これでPython3が使える状態になりました。
mba:~$ python --version Python 3.13.3