MAC 下用 pip 安装时出现 OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/
来源:互联网 发布:网络新技术论文 编辑:程序博客网 时间:2024/06/04 23:24
在MAC上用pip安装zbarlight时出现如下错误
➜ zbarlight git:(zxdev) ✗ pip install zbarlightCollecting zbarlightRequirement already satisfied: Pillow in /Users/zhangxin/Library/Python/2.7/lib/python/site-packages (from zbarlight)Requirement already satisfied: olefile in /Users/zhangxin/Library/Python/2.7/lib/python/site-packages (from Pillow->zbarlight)Installing collected packages: zbarlightException:Traceback (most recent call last): File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 342, in run prefix=options.prefix_path, File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 784, in install **kwargs File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 851, in install self.move_wheel_files(self.source_dir, root=root, prefix=prefix) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 1064, in move_wheel_files isolated=self.isolated, File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 345, in move_wheel_files clobber(source, lib_dir, True) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 316, in clobber ensure_dir(destdir) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/__init__.py", line 83, in ensure_dir os.makedirs(path) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 157, in makedirs mkdir(name, mode)OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/zbarlight'
解决方法:
sudo chown -R $USER /Library/Python/2.7/site-packages/
阅读全文
0 0
- MAC 下用 pip 安装时出现 OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/
- mac下更新pip时提示OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/pip-8.0.2-py2.
- Mac: OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/h5py'
- OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/pip-1.5-py2.7.egg/EGG-INFO
- MAC下解决pip安装权限问题 OSError: [Errno 13] Permission denied OSError: [Errno 1] Operation not permitted:
- 安装wechat_sender 出错: Permission denied: '/Library/Python/2.7/site-packages/singledispatch.py' pip ins
- [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-1433.pth'
- 安装python包时出现IOError: [Errno 13] Permission denied
- error: could not create '/Library/Python/2.7/site-packages/jedi': Permission denied
- error: could not create '/Library/Python/2.7/site-packages/xlrd': Permission denied
- OSError:[Errno 13]Permission denied解决方法
- OSError: [Errno 13] Permission denied: '/home/git/gitosis'
- 安装第三方包的时候报错 IOError: [Errno 13] Permission denied: 'C:\\Program Files\\Python2.7\\Lib\\site-packages
- Exception: Traceback (most recent call last): File "/Library/Python/2.7/site-packages/pip-9.0.1-py
- Mac下pip install “Permission Denied”解决办法
- ubantu中用Python pip安装软件包是出现Pemirssion denied:dist-packages error解决方法
- 解决 “python [Errno 13] Permission denied”
- 解决 “python [Errno 13] Permission denied”
- Java 基础(5)—— 普通代码块、构造代码块、静态代码块
- tensorflow 安装目录在哪里?
- Windows核心编程--线程
- 调试时不用在cmd中输入命令参数,直接在属性页中操作
- java.io.Serializable 序列化
- MAC 下用 pip 安装时出现 OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/
- 读Zepto源码之Fx模块
- 【BZOJ3107】【cqoi2013】二进制a+b
- 043 Tayler泰勒公式证明
- 【BZOJ4282】慎二的随机数列
- poj2409 Let it Bead(置换)
- 【BZOJ4282】慎二的随机数列(LIS)
- 自定义圆及箭头加减速
- Python 之 高级面向对象编程 slots