LoginSignup
0
1

macでPythonを起動しようとするとコマンドラインツールのインストール要求が繰り返し表示される件の解消

Last updated at Posted at 2023-11-23

macでPythonを起動しようとすると、以下のエラーが発生した。 コマンドラインツールをインストールしても、再度表示される。

% python 
xcode-select: Failed to locate 'python', requesting installation of command line developer tools.

修正方法

コマンドラインツールのpythonコマンドとして、python3のシンボリックリンクを置くと直る。

sudo ln -s /Library/Developer/CommandLineTools/usr/bin/python3 /Library/Developer/CommandLineTools/usr/bin/python

この修正方法は以下でコメントされていた。他にも方法があるようだが、私の環境では上記で修正された。

以上

0
1
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
1