LoginSignup
0
0

More than 1 year has passed since last update.

Apple M1 macOS Montereyでpowerline-shellを導入する

Last updated at Posted at 2022-04-05

はじめに

Apple M1を搭載したMacBook Airにpowerline-shellを導入したかったが、
公式のREADME.md通りに手順を踏んでもインストールが失敗してしまうことから本記事を投稿するにあたった。

目次

インストール時のエラー

Apple M1を搭載したMacBook Airにpowerline-shellを導入したかったが、macOS Montereyバージョン12.0.1に標準インストールされたPython3でpowerline-shellをインストールしようとすると、以下のエラーによりインストールできなかった。

running install
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 13] Permission denied: '/Library/Python/3.8'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /Library/Python/3.8/site-packages/

This directory does not currently exist.  Please create it and try again, or
choose a different installation directory (using the -d or --install-dir
option).

対処

pyenvを使用しPython 3.9.12をインストールし、setup.pyを実行する

参考文献

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0