简体   繁体   English

pip install matplotlib错误,错误:/usr/local/man/man1/nosetests.1:权限被拒绝

[英]pip install matplotlib error, error: /usr/local/man/man1/nosetests.1: Permission denied

I just had the following error when trying to install matplotlib using homebrew: 我尝试使用自制软件安装matplotlib时遇到以下错误:

...[tons of output, then:]

running install_data

copying nosetests.1 -> /usr/local/man/man1

error: /usr/local/man/man1/nosetests.1: Permission denied

----------------------------------------
Cleaning up...
Command /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools, tokenize;__file__='/private/var/folders/ys/l1bnz3cx34z3h4mrkny947v40000gr/T/pip_build_schultzm/nose/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/ys/l1bnz3cx34z3h4mrkny947v40000gr/T/pip-xWlPBu-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/ys/l1bnz3cx34z3h4mrkny947v40000gr/T/pip_build_schultzm/nose
Storing debug log for failure in /Users/schultzm/.pip/pip.log

I've been searching for an answer, could not find one. 我一直在寻找答案,找不到答案。 However, I solved it (so posting it here for others) by doing: 但是,我通过以下方式解决了问题(所以在这里发布给其他人)

sudo chmod 777 /usr/local/man/man1/

and then re-running the install (ie, pip install matplotlib) and it ran fine. 然后重新运行安装(即,pip install matplotlib),它运行正常。

sudo chmod 777 /usr/local/man/man1/

Then re-run the install (ie, pip install matplotlib ) 然后重新运行安装(即pip install matplotlib

Explained: sudo allows admin privileges (allows 'super user' after entering an appropriate password), chmod allows the administrator to "change file mode", the '7' means (4[read] + 2[write] + 1[execute]), the first '7' means 'owner', the second '7' means 'group' and the third '7' means 'others'; 解释:sudo允许管理员权限(输入适当的密码后允许'超级用户'),chmod允许管理员“更改文件模式”,'7'表示(4 [读取] + 2 [写入] + 1 [执行] ),第一个'7'表示'所有者',第二个'7'表示'组',第三个'7'表示'其他'; so will allow admin privileges in order to make the change to the file mode to 'rwx' for owner, group and others. 所以将允许管理员权限,以便为所有者,组和其他人将文件模式更改为“rwx”。 The final part of the command is the file(s) you would like to chmod. 命令的最后一部分是您想要chmod的文件。

Yep you are right. 你是对的。 You have to change the permission.. If you have sudo permission then you don't need to change directory permissions. 您必须更改权限..如果您具有sudo权限,则无需更改目录权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 pip install planemo 失败并出现错误:“错误:由于 OSError 无法安装软件包:[Errno 13] 权限被拒绝:'/usr/local/locale'” - pip install planemo fails with error: "ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/usr/local/locale'" 由于“环境错误:[错误 13]:权限被拒绝:‘usr/local/bin/f2py’”,无法安装软件包 - Could not install packages due to a "Environment error :[error 13]: permission denied : 'usr/local/bin/f2py'" 无法安装 pip:权限被拒绝错误 - Unable to install pip: Permission denied error pip 安装 uvloop 导致权限被拒绝错误 - pip install uvloop causes permission denied error 错误:[Errno 13] 权限被拒绝:'./configure' 在 termux 上使用 pip3 install matplotlib - error: [Errno 13] Permission denied: './configure' when use pip3 install matplotlib on termux IPython错误:/ usr / local / bin / iptest:权限被拒绝 - IPython error: /usr/local/bin/iptest: Permission denied 使用 pip 安装 python 包手册页 - Install python package man pages with pip 权限错误,pip安装 - Permission error, pip install 点安装权限错误 - pip install permission error 链接 /usr/local/Cellar/python3/3.5.1... 错误:权限被拒绝 - /usr/local/Frameworks - Linking /usr/local/Cellar/python3/3.5.1... Error: Permission denied - /usr/local/Frameworks
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM