読者です 読者をやめる 読者になる 読者になる

MacBook への easy_install のインストールなど

Python log

easy_install のインストール

$ python distribute_setup.py 
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.32.tar.gz
Extracting in /var/folders/--/--ZKYOToHjWDdnLg5NbQxU+++TI/-Tmp-/tmpiCJTp5
Now working in /var/folders/--/--ZKYOToHjWDdnLg5NbQxU+++TI/-Tmp-/tmpiCJTp5/distribute-0.6.32
Installing Distribute
Before install bootstrap.
Scanning installed packages
Setuptools installation detected at /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python
Non-egg installation
Moving elements out of the way...
Renaming /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools-0.6c9-py2.6.egg-info to /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools-0.6c9-py2.6.egg-info.OLD.1354715927.48
Traceback (most recent call last):
  File "setup.py", line 136, in <module>
    _before_install()
  File "/private/var/folders/--/--ZKYOToHjWDdnLg5NbQxU+++TI/-Tmp-/tmpiCJTp5/distribute-0.6.32/distribute_setup.py", line 371, in _before_install
    _fake_setuptools()
  File "/private/var/folders/--/--ZKYOToHjWDdnLg5NbQxU+++TI/-Tmp-/tmpiCJTp5/distribute-0.6.32/distribute_setup.py", line 428, in _fake_setuptools
    res = _remove_flat_installation(setuptools_location)
  File "/private/var/folders/--/--ZKYOToHjWDdnLg5NbQxU+++TI/-Tmp-/tmpiCJTp5/distribute-0.6.32/distribute_setup.py", line 231, in __no_sandbox
    return function(*args, **kw)
  File "/private/var/folders/--/--ZKYOToHjWDdnLg5NbQxU+++TI/-Tmp-/tmpiCJTp5/distribute-0.6.32/distribute_setup.py", line 286, in _remove_flat_installation
    patched = _patch_egg_dir(pkg_info)
  File "/private/var/folders/--/--ZKYOToHjWDdnLg5NbQxU+++TI/-Tmp-/tmpiCJTp5/distribute-0.6.32/distribute_setup.py", line 231, in __no_sandbox
    return function(*args, **kw)
  File "/private/var/folders/--/--ZKYOToHjWDdnLg5NbQxU+++TI/-Tmp-/tmpiCJTp5/distribute-0.6.32/distribute_setup.py", line 355, in _patch_egg_dir
    _rename_path(path)
  File "/private/var/folders/--/--ZKYOToHjWDdnLg5NbQxU+++TI/-Tmp-/tmpiCJTp5/distribute-0.6.32/distribute_setup.py", line 266, in _rename_path
    os.rename(path, new_name)
OSError: [Errno 13] Permission denied
Something went wrong during the installation.
See the error message above.

エラーが出た。

sudo をつけるとうまくいった
$ sudo python distribute_setup.py 
Password:
Extracting in /tmp/tmpesOpJH
Now working in /tmp/tmpesOpJH/distribute-0.6.32
Installing Distribute
Before install bootstrap.
Scanning installed packages
Setuptools installation detected at /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python
Non-egg installation
Moving elements out of the way...
Renaming /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools-0.6c9-py2.6.egg-info to /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools-0.6c9-py2.6.egg-info.OLD.1354716479.39
Renaming /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools to /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools.OLD.1354716479.39
Renaming /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py to /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py.OLD.1354716479.39
Renaming /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/site.py to /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/site.py.OLD.1354716479.41
Patching complete.
Relaunching...
Before install bootstrap.
Scanning installed packages
Setuptools installation detected at /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python
Non-egg installation
Moving elements out of the way...
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools-0.6c9-py2.6.egg-info/EGG-INFO/PKG-INFO already patched.
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools-0.6c9-py2.6.egg-info already patched.
running install
running bdist_egg
running egg_info
writing distribute.egg-info/PKG-INFO
writing top-level names to distribute.egg-info/top_level.txt
writing dependency_links to distribute.egg-info/dependency_links.txt
writing entry points to distribute.egg-info/entry_points.txt
reading manifest file 'distribute.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'distribute.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.6-universal/egg
running install_lib
running build_py
creating build
creating build/lib
copying pkg_resources.py -> build/lib
copying easy_install.py -> build/lib
copying site.py -> build/lib
creating build/lib/_markerlib
copying _markerlib/__init__.py -> build/lib/_markerlib
copying _markerlib/markers.py -> build/lib/_markerlib
creating build/lib/setuptools
copying setuptools/__init__.py -> build/lib/setuptools
copying setuptools/archive_util.py -> build/lib/setuptools
copying setuptools/depends.py -> build/lib/setuptools
copying setuptools/dist.py -> build/lib/setuptools
copying setuptools/extension.py -> build/lib/setuptools
copying setuptools/package_index.py -> build/lib/setuptools
copying setuptools/sandbox.py -> build/lib/setuptools
copying setuptools/script template (dev).py -> build/lib/setuptools
copying setuptools/script template.py -> build/lib/setuptools
creating build/lib/setuptools/command
copying setuptools/command/__init__.py -> build/lib/setuptools/command
copying setuptools/command/alias.py -> build/lib/setuptools/command
copying setuptools/command/bdist_egg.py -> build/lib/setuptools/command
copying setuptools/command/bdist_rpm.py -> build/lib/setuptools/command
copying setuptools/command/bdist_wininst.py -> build/lib/setuptools/command
copying setuptools/command/build_ext.py -> build/lib/setuptools/command
copying setuptools/command/build_py.py -> build/lib/setuptools/command
copying setuptools/command/develop.py -> build/lib/setuptools/command
copying setuptools/command/easy_install.py -> build/lib/setuptools/command
copying setuptools/command/egg_info.py -> build/lib/setuptools/command
copying setuptools/command/install.py -> build/lib/setuptools/command
copying setuptools/command/install_egg_info.py -> build/lib/setuptools/command
copying setuptools/command/install_lib.py -> build/lib/setuptools/command
copying setuptools/command/install_scripts.py -> build/lib/setuptools/command
copying setuptools/command/register.py -> build/lib/setuptools/command
copying setuptools/command/rotate.py -> build/lib/setuptools/command
copying setuptools/command/saveopts.py -> build/lib/setuptools/command
copying setuptools/command/sdist.py -> build/lib/setuptools/command
copying setuptools/command/setopt.py -> build/lib/setuptools/command
copying setuptools/command/test.py -> build/lib/setuptools/command
copying setuptools/command/upload.py -> build/lib/setuptools/command
copying setuptools/command/upload_docs.py -> build/lib/setuptools/command
creating build/lib/setuptools/tests
copying setuptools/tests/__init__.py -> build/lib/setuptools/tests
copying setuptools/tests/doctest.py -> build/lib/setuptools/tests
copying setuptools/tests/py26compat.py -> build/lib/setuptools/tests
copying setuptools/tests/server.py -> build/lib/setuptools/tests
copying setuptools/tests/test_bdist_egg.py -> build/lib/setuptools/tests
copying setuptools/tests/test_build_ext.py -> build/lib/setuptools/tests
copying setuptools/tests/test_develop.py -> build/lib/setuptools/tests
copying setuptools/tests/test_dist_info.py -> build/lib/setuptools/tests
copying setuptools/tests/test_easy_install.py -> build/lib/setuptools/tests
copying setuptools/tests/test_markerlib.py -> build/lib/setuptools/tests
copying setuptools/tests/test_packageindex.py -> build/lib/setuptools/tests
copying setuptools/tests/test_resources.py -> build/lib/setuptools/tests
copying setuptools/tests/test_sandbox.py -> build/lib/setuptools/tests
copying setuptools/tests/test_sdist.py -> build/lib/setuptools/tests
copying setuptools/tests/test_test.py -> build/lib/setuptools/tests
copying setuptools/tests/test_upload_docs.py -> build/lib/setuptools/tests
copying setuptools/cli-32.exe -> build/lib/setuptools
copying setuptools/cli-64.exe -> build/lib/setuptools
copying setuptools/cli.exe -> build/lib/setuptools
copying setuptools/gui-32.exe -> build/lib/setuptools
copying setuptools/gui-64.exe -> build/lib/setuptools
copying setuptools/gui.exe -> build/lib/setuptools
creating build/bdist.macosx-10.6-universal
creating build/bdist.macosx-10.6-universal/egg
creating build/bdist.macosx-10.6-universal/egg/_markerlib
copying build/lib/_markerlib/__init__.py -> build/bdist.macosx-10.6-universal/egg/_markerlib
copying build/lib/_markerlib/markers.py -> build/bdist.macosx-10.6-universal/egg/_markerlib
copying build/lib/easy_install.py -> build/bdist.macosx-10.6-universal/egg
copying build/lib/pkg_resources.py -> build/bdist.macosx-10.6-universal/egg
creating build/bdist.macosx-10.6-universal/egg/setuptools
copying build/lib/setuptools/__init__.py -> build/bdist.macosx-10.6-universal/egg/setuptools
copying build/lib/setuptools/archive_util.py -> build/bdist.macosx-10.6-universal/egg/setuptools
copying build/lib/setuptools/cli-32.exe -> build/bdist.macosx-10.6-universal/egg/setuptools
copying build/lib/setuptools/cli-64.exe -> build/bdist.macosx-10.6-universal/egg/setuptools
copying build/lib/setuptools/cli.exe -> build/bdist.macosx-10.6-universal/egg/setuptools
creating build/bdist.macosx-10.6-universal/egg/setuptools/command
copying build/lib/setuptools/command/__init__.py -> build/bdist.macosx-10.6-universal/egg/setuptools/command
copying build/lib/setuptools/command/alias.py -> build/bdist.macosx-10.6-universal/egg/setuptools/command
copying build/lib/setuptools/command/bdist_egg.py -> build/bdist.macosx-10.6-universal/egg/setuptools/command
copying build/lib/setuptools/command/bdist_rpm.py -> build/bdist.macosx-10.6-universal/egg/setuptools/command
copying build/lib/setuptools/command/bdist_wininst.py -> build/bdist.macosx-10.6-universal/egg/setuptools/command
copying build/lib/setuptools/command/build_ext.py -> build/bdist.macosx-10.6-universal/egg/setuptools/command
copying build/lib/setuptools/command/build_py.py -> build/bdist.macosx-10.6-universal/egg/setuptools/command
copying build/lib/setuptools/command/develop.py -> build/bdist.macosx-10.6-universal/egg/setuptools/command
copying build/lib/setuptools/command/easy_install.py -> build/bdist.macosx-10.6-universal/egg/setuptools/command
copying build/lib/setuptools/command/egg_info.py -> build/bdist.macosx-10.6-universal/egg/setuptools/command
copying build/lib/setuptools/command/install.py -> build/bdist.macosx-10.6-universal/egg/setuptools/command
copying build/lib/setuptools/command/install_egg_info.py -> build/bdist.macosx-10.6-universal/egg/setuptools/command
copying build/lib/setuptools/command/install_lib.py -> build/bdist.macosx-10.6-universal/egg/setuptools/command
copying build/lib/setuptools/command/install_scripts.py -> build/bdist.macosx-10.6-universal/egg/setuptools/command
copying build/lib/setuptools/command/register.py -> build/bdist.macosx-10.6-universal/egg/setuptools/command
copying build/lib/setuptools/command/rotate.py -> build/bdist.macosx-10.6-universal/egg/setuptools/command
copying build/lib/setuptools/command/saveopts.py -> build/bdist.macosx-10.6-universal/egg/setuptools/command
copying build/lib/setuptools/command/sdist.py -> build/bdist.macosx-10.6-universal/egg/setuptools/command
copying build/lib/setuptools/command/setopt.py -> build/bdist.macosx-10.6-universal/egg/setuptools/command
copying build/lib/setuptools/command/test.py -> build/bdist.macosx-10.6-universal/egg/setuptools/command
copying build/lib/setuptools/command/upload.py -> build/bdist.macosx-10.6-universal/egg/setuptools/command
copying build/lib/setuptools/command/upload_docs.py -> build/bdist.macosx-10.6-universal/egg/setuptools/command
copying build/lib/setuptools/depends.py -> build/bdist.macosx-10.6-universal/egg/setuptools
copying build/lib/setuptools/dist.py -> build/bdist.macosx-10.6-universal/egg/setuptools
copying build/lib/setuptools/extension.py -> build/bdist.macosx-10.6-universal/egg/setuptools
copying build/lib/setuptools/gui-32.exe -> build/bdist.macosx-10.6-universal/egg/setuptools
copying build/lib/setuptools/gui-64.exe -> build/bdist.macosx-10.6-universal/egg/setuptools
copying build/lib/setuptools/gui.exe -> build/bdist.macosx-10.6-universal/egg/setuptools
copying build/lib/setuptools/package_index.py -> build/bdist.macosx-10.6-universal/egg/setuptools
copying build/lib/setuptools/sandbox.py -> build/bdist.macosx-10.6-universal/egg/setuptools
copying build/lib/setuptools/script template (dev).py -> build/bdist.macosx-10.6-universal/egg/setuptools
copying build/lib/setuptools/script template.py -> build/bdist.macosx-10.6-universal/egg/setuptools
creating build/bdist.macosx-10.6-universal/egg/setuptools/tests
copying build/lib/setuptools/tests/__init__.py -> build/bdist.macosx-10.6-universal/egg/setuptools/tests
copying build/lib/setuptools/tests/doctest.py -> build/bdist.macosx-10.6-universal/egg/setuptools/tests
copying build/lib/setuptools/tests/py26compat.py -> build/bdist.macosx-10.6-universal/egg/setuptools/tests
copying build/lib/setuptools/tests/server.py -> build/bdist.macosx-10.6-universal/egg/setuptools/tests
copying build/lib/setuptools/tests/test_bdist_egg.py -> build/bdist.macosx-10.6-universal/egg/setuptools/tests
copying build/lib/setuptools/tests/test_build_ext.py -> build/bdist.macosx-10.6-universal/egg/setuptools/tests
copying build/lib/setuptools/tests/test_develop.py -> build/bdist.macosx-10.6-universal/egg/setuptools/tests
copying build/lib/setuptools/tests/test_dist_info.py -> build/bdist.macosx-10.6-universal/egg/setuptools/tests
copying build/lib/setuptools/tests/test_easy_install.py -> build/bdist.macosx-10.6-universal/egg/setuptools/tests
copying build/lib/setuptools/tests/test_markerlib.py -> build/bdist.macosx-10.6-universal/egg/setuptools/tests
copying build/lib/setuptools/tests/test_packageindex.py -> build/bdist.macosx-10.6-universal/egg/setuptools/tests
copying build/lib/setuptools/tests/test_resources.py -> build/bdist.macosx-10.6-universal/egg/setuptools/tests
copying build/lib/setuptools/tests/test_sandbox.py -> build/bdist.macosx-10.6-universal/egg/setuptools/tests
copying build/lib/setuptools/tests/test_sdist.py -> build/bdist.macosx-10.6-universal/egg/setuptools/tests
copying build/lib/setuptools/tests/test_test.py -> build/bdist.macosx-10.6-universal/egg/setuptools/tests
copying build/lib/setuptools/tests/test_upload_docs.py -> build/bdist.macosx-10.6-universal/egg/setuptools/tests
copying build/lib/site.py -> build/bdist.macosx-10.6-universal/egg
byte-compiling build/bdist.macosx-10.6-universal/egg/_markerlib/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/_markerlib/markers.py to markers.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/easy_install.py to easy_install.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/pkg_resources.py to pkg_resources.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/archive_util.py to archive_util.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/command/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/command/alias.py to alias.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/command/bdist_egg.py to bdist_egg.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/command/bdist_rpm.py to bdist_rpm.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/command/bdist_wininst.py to bdist_wininst.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/command/build_ext.py to build_ext.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/command/build_py.py to build_py.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/command/develop.py to develop.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/command/easy_install.py to easy_install.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/command/egg_info.py to egg_info.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/command/install.py to install.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/command/install_egg_info.py to install_egg_info.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/command/install_lib.py to install_lib.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/command/install_scripts.py to install_scripts.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/command/register.py to register.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/command/rotate.py to rotate.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/command/saveopts.py to saveopts.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/command/sdist.py to sdist.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/command/setopt.py to setopt.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/command/test.py to test.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/command/upload.py to upload.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/command/upload_docs.py to upload_docs.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/depends.py to depends.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/dist.py to dist.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/extension.py to extension.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/package_index.py to package_index.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/sandbox.py to sandbox.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/script template (dev).py to script template (dev).pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/script template.py to script template.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/tests/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/tests/doctest.py to doctest.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/tests/py26compat.py to py26compat.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/tests/server.py to server.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/tests/test_bdist_egg.py to test_bdist_egg.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/tests/test_build_ext.py to test_build_ext.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/tests/test_develop.py to test_develop.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/tests/test_dist_info.py to test_dist_info.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/tests/test_easy_install.py to test_easy_install.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/tests/test_markerlib.py to test_markerlib.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/tests/test_packageindex.py to test_packageindex.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/tests/test_resources.py to test_resources.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/tests/test_sandbox.py to test_sandbox.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/tests/test_sdist.py to test_sdist.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/tests/test_test.py to test_test.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/setuptools/tests/test_upload_docs.py to test_upload_docs.pyc
byte-compiling build/bdist.macosx-10.6-universal/egg/site.py to site.pyc
creating build/bdist.macosx-10.6-universal/egg/EGG-INFO
copying distribute.egg-info/PKG-INFO -> build/bdist.macosx-10.6-universal/egg/EGG-INFO
copying distribute.egg-info/SOURCES.txt -> build/bdist.macosx-10.6-universal/egg/EGG-INFO
copying distribute.egg-info/dependency_links.txt -> build/bdist.macosx-10.6-universal/egg/EGG-INFO
copying distribute.egg-info/entry_points.txt -> build/bdist.macosx-10.6-universal/egg/EGG-INFO
copying distribute.egg-info/top_level.txt -> build/bdist.macosx-10.6-universal/egg/EGG-INFO
copying distribute.egg-info/zip-safe -> build/bdist.macosx-10.6-universal/egg/EGG-INFO
creating dist
creating 'dist/distribute-0.6.32-py2.6.egg' and adding 'build/bdist.macosx-10.6-universal/egg' to it
removing 'build/bdist.macosx-10.6-universal/egg' (and everything under it)
Processing distribute-0.6.32-py2.6.egg
creating /Library/Python/2.6/site-packages/distribute-0.6.32-py2.6.egg
Extracting distribute-0.6.32-py2.6.egg to /Library/Python/2.6/site-packages
Adding distribute 0.6.32 to easy-install.pth file
Installing easy_install script to /usr/local/bin
Installing easy_install-2.6 script to /usr/local/bin

Installed /Library/Python/2.6/site-packages/distribute-0.6.32-py2.6.egg
Processing dependencies for distribute==0.6.32
Finished processing dependencies for distribute==0.6.32
After install bootstrap.
Creating /Library/Python/2.6/site-packages/setuptools-0.6c11-py2.6.egg-info
Creating /Library/Python/2.6/site-packages/setuptools.pth

virtualenv のインストール

$ easy_install virtualenv
Searching for virtualenv
Reading http://pypi.python.org/simple/virtualenv/
Reading http://www.virtualenv.org
Reading http://virtualenv.openplans.org
Best match: virtualenv 1.8.4
Downloading http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.8.4.tar.gz#md5=1c7e56a7f895b2e71558f96e365ee7a7
Processing virtualenv-1.8.4.tar.gz
Running virtualenv-1.8.4/setup.py -q bdist_egg --dist-dir /var/folders/--/--ZKYOToHjWDdnLg5NbQxU+++TI/-Tmp-/easy_install-OdRcQ2/virtualenv-1.8.4/egg-dist-tmp-n2NTau
warning: no previously-included files matching '*' found under directory 'docs/_templates'
warning: no previously-included files matching '*' found under directory 'docs/_build'
Adding virtualenv 1.8.4 to easy-install.pth file
Installing virtualenv script to /usr/local/bin
error: /usr/local/bin/virtualenv: Permission denied

こちらもエラーが出た。

sudo をつけるとうまくいった
$ sudo easy_install virtualenv
Searching for virtualenv
Best match: virtualenv 1.8.4
Processing virtualenv-1.8.4-py2.6.egg
virtualenv 1.8.4 is already the active version in easy-install.pth
Installing virtualenv script to /usr/local/bin
Installing virtualenv-2.6 script to /usr/local/bin




Using /Library/Python/2.6/site-packages/virtualenv-1.8.4-py2.6.egg
Processing dependencies for virtualenv
Finished processing dependencies for virtualenv

参照エントリ

Pythonの環境設定でむかついてる人はとりあえずこれをコピペで実行してください - YAMAGUCHI::weblog

http://ymotongpoo.hatenablog.com/entry/2012/10/18/144352