Mac 操作积累笔记

来源:互联网 发布:java计算器布局 编辑:程序博客网 时间:2024/06/04 19:09

一、mac终端切换用户

1mac终端切换用户到root

sudo -i

2mac终端切换成普通用户

su - Xiaobang  (Xiaobang为用户名,"-"号的前面后面各有一个空格)

二、osx10.11.1 上面sudo pip install ipython时出现的问题

osx 10.11.1 最近这几天不知道出现什么问题了,sudo pip install 安装软件的时候,总有个提示,而且有些模块还没办法进行安装,以前没遇到过这样的情况 

The directory '/Users/*****/Library/Caches/pip/http' or its parent directory is not owned by the current user and thecache has been disabled. Please check the permissions and owner of that directory.If executing pip with sudo, you may want sudo's -H flag.

接下来按照提示写入: sudo pip install ipython 或者 sudo -H install ipython 或者sudo - Xiao*** pip install ipython 都不行,最后在网上找到一个可行的方法,试了一下,好了。

方法如下:

关机。开机前按着 cmd键 + R 。会进入一个 恢复模式。 在菜单栏 有一个选项:“终端” 。进入终端后,输入 csrutil disable 。 这样就关闭了os x10.11的 目录写入权限验证。 重启电脑,你会发现 上述目录 不再提示权限不足。 剩下按照报错提示操作。

链接为: https://www.oschina.net/question/615783_2140079


原创粉丝点击