自制软件:无法链接python [英] Homebrew: Cannot link python

查看:90
本文介绍了自制软件:无法链接python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Homebrew中链接python时遇到问题.这是输出:

I'm having an issue linking python in Homebrew. Here is the output:

brew链接python

链接/usr/local/Cellar/python/2.7.13 ...错误:权限被拒绝-/usr/local/Frameworks

Linking /usr/local/Cellar/python/2.7.13... Error: Permission denied - /usr/local/Frameworks

当我对/usr/local的内容进行 ls -al (以查看Frameworks的权限)时,发现没有目录'Frameworks'.

When I ls -al on the contents of /usr/local (to see the permissions of Frameworks), I find there is no directory 'Frameworks'.

我不愿使用 mkdir Frameworks ,以防它使用了错误的权限并且没有将其连接到系统的其他元素.

I'm hesitant to mkdir Frameworks in case it does so with the wrong permissions and doesn't connect it to other elements of the system.

推荐答案

创建 Frameworks 目录并为其自身创建 chown

Create the Frameworks directory and chown for itself

$ sudo mkdir /usr/local/Frameworks
$ sudo chown -R $(whoami):admin /usr/local/Frameworks
$ brew link python

这篇关于自制软件:无法链接python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆