【发布时间】:2014-05-10 07:54:32
【问题描述】:
我在尝试使用自制软件安装 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
我一直在寻找答案,找不到答案。但是,我通过以下方式解决了它(所以在这里发布给其他人):
sudo chmod 777 /usr/local/man/man1/
然后重新运行安装(即 pip install matplotlib),它运行良好。
【问题讨论】:
-
明确鼓励您回答您自己的问题blog.stackoverflow.com/2011/07/…,所以您能否在回答问题中写下您的解决方案? :)
-
我的意思是在答案部分*抱歉。
-
完成。感谢您的提示。
标签: python python-2.7 matplotlib pip homebrew