ハロー餃子

餃子好きが興じてプログラムを書き始めました

High SierraでBrew周り詰まった事をメモ(Py編)

-> % brew link python
Linking /usr/local/Cellar/python/3.6.4_4... Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks

 

vimを入れ直した時に、with python3なんてしたが為に…

そもそも酷くないか

[/usr/local]
-> % ll
total 0
drwxrwxr-x 28 cyberhawk admin 896B 3 21 00:55 Cellar
drwxrwxr-x 17 cyberhawk admin 544B 3 4 19:09 Homebrew
drwxrwxr-x 120 cyberhawk admin 3.8K 3 21 00:59 bin
drwxrwxr-x 7 cyberhawk admin 224B 3 21 00:51 etc

 

[/usr/local]
-> % sudo mkdir /usr/local/Frameworks

[/usr/local]
-> % sudo mkdir /usr/local/Frameworks/Python.framework

[/usr/local]
-> % sudo chown -R $(whoami) $(brew --prefix)/*

[/usr/local]
-> % brew link python
Linking /usr/local/Cellar/python/3.6.4_4... 1004 symlinks created

 

完了