2014-07-17 2 views
1

Mac OSX 10.7.5와 matplotlib를 설치하려고하는데 문제가 계속 발생합니다.Python : Matplotlib 설치 문제

Kristas-MacBook-Pro:lib Krista$ brew install matplotlib 
==> Installing matplotlib dependency: numpy 
==> Using Homebrew-provided fortran compiler. 
This may be changed by setting the FC environment variable. 
==> Downloading https://downloads.sourceforge.net/project/numpy/NumPy/1.8.1/nump 
Already downloaded: /Library/Caches/Homebrew/numpy-1.8.1.tar.gz 
==> Downloading https://pypi.python.org/packages/source/n/nose/nose-1.3.1.tar.gz 
Already downloaded: /Library/Caches/Homebrew/numpy--nose-1.3.1.tar.gz 
==> python setup.py install --prefix=/usr/local/Cellar/numpy/1.8.1 --single-vers 
    or: setup.py --help [cmd1 cmd2 ...] 
    or: setup.py --help-commands 
    or: setup.py cmd --help 

error: option --single-version-externally-managed not recognized 

READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting 
If reporting this issue please do so at (not Homebrew/homebrew): 
    https://github.com/homebrew/homebrew-python/issues 

나는 무엇을 해야할지 잘 모르겠다. 나는 그 웹 사이트에 의해 제안 된 것처럼 양조 의사 등을 시도했지만 방금 잃어버린. 어떤 도움이 필요합니까?


나는이 오류가 (그리고 setuptools에 업그레이드하려고 할 때, 나는 또한 그것을 얻을) 당신은 setuptools ( https://pypi.python.org/pypi/setuptools)를 업데이트하거나 Distribute를 설치해야

Kristas-MacBook-Pro:lib Krista$ pip install distribute 
Downloading/unpacking distribute 
    Downloading distribute-0.7.3.zip (145kB): 145kB downloaded 
    Running setup.py (path:/private/var/folders/1z/b3f7sbv11gv2jvy113vy8m180000gn/T/pip_build_Krista/distribute/setup.py) egg_info for package distribute 

Downloading/unpacking setuptools>=0.7 (from distribute) 
    Downloading setuptools-5.4.1-py2.py3-none-any.whl (528kB): 528kB downloaded 
Installing collected packages: setuptools, distribute 
    Found existing installation: setuptools 0.6c12dev-r85381 
    Uninstalling setuptools: 
Cleaning up... 
Exception: 
Traceback (most recent call last): 
    File "/Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg/pip/basecommand.py", line 122, in main 
    status = self.run(options, args) 
    File "/Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg/pip/commands/install.py", line 283, in run 
    requirement_set.install(install_options, global_options, root=options.root_path) 
    File "/Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg/pip/req.py", line 1431, in install 
    requirement.uninstall(auto_confirm=True) 
    File "/Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg/pip/req.py", line 598, in uninstall 
    paths_to_remove.remove(auto_confirm) 
    File "/Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg/pip/req.py", line 1836, in remove 
    renames(path, new_path) 
    File "/Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg/pip/util.py", line 295, in renames 
    shutil.move(old, new) 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 293, in move 
OSError: [Errno 13] Permission denied: '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/easy_install.py' 

Storing debug log for failure in /Users/Krista/Library/Logs/pip.log 

답변

0
+0

두 가지 모두 시도 할 때 오류가 발생했습니다. 두 가지 모두에 대해 동일한 오류입니다. 내가 코멘트의 끝에 너무 길기 때문에 내 질문의 맨 아래에 추가했습니다. – user132039

+0

@ user132039 당신은 root 사용자 여야합니다. 'sudo pip install distribute'을 수행 하시겠습니까? – theharshest

+0

루트 사용자 란 무엇을 의미합니까? 또한 작동하지 않았습니다. 파일을 찾을 수 없다고 했어. – user132039