Installing NLTK (Mac)
I had another chance to set up NLTK in other Mac (Mountain Lion). Here I leave logs...
Kens-Macbook-Air-2010:~ ken$ easy_install pip Searching for pip Best match: pip 1.3.1 Processing pip-1.3.1-py2.7.egg pip 1.3.1 is already the active version in easy-install.pth Installing pip script to /usr/local/bin error: /usr/local/bin/pip: Permission denied Kens-Macbook-Air-2010:~ ken$ sudo easy_install pip WARNING: Improper use of the sudo command could lead to data loss or the deletion of important system files. Please double-check your typing when using sudo. Type "man sudo" for more information. To proceed, enter your password, or type Ctrl-C to abort. Password: Searching for pip Best match: pip 1.3.1 Processing pip-1.3.1-py2.7.egg pip 1.3.1 is already the active version in easy-install.pth Installing pip script to /usr/local/bin Installing pip-2.7 script to /usr/local/bin Using /Library/Python/2.7/site-packages/pip-1.3.1-py2.7.egg Processing dependencies for pip Finished processing dependencies for pip Kens-Macbook-Air-2010:~ ken$ pip install numpy Requirement already satisfied (use --upgrade to upgrade): numpy in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python Cleaning up... Kens-Macbook-Air-2010:~ ken$ pip install yamlog Downloading/unpacking yamlog Downloading Yamlog-0.9.tar.gz Running setup.py egg_info for package yamlog Installing collected packages: yamlog Running setup.py install for yamlog Successfully installed yamlog Cleaning up... .... Kens-Macbook-Air-2010:~ ken$ pip install matplotlib Downloading/unpacking matplotlib Downloading matplotlib-1.2.1.tar.gz (38.4MB): 38.4MB downloaded Running setup.py egg_info for package matplotlib basedirlist is: ['/usr/local/', '/usr', '/usr/X11', '/opt/local'] ============================================================================ BUILDING MATPLOTLIB matplotlib: 1.2.1 python: 2.7.2 (default, Oct 11 2012, 20:14:37) [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] platform: darwin REQUIRED DEPENDENCIES numpy: 1.6.1 freetype2: found, but unknown version (no pkg-config) OPTIONAL BACKEND DEPENDENCIES libpng: found, but unknown version (no pkg-config) Tkinter: Tkinter: version not identified, Tk: 8.5, Tcl: 8.5 Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to "import gtk" in your build/install environment Mac OS X native: yes Qt: no Qt4: no PySide: no Cairo: no OPTIONAL DATE/TIMEZONE DEPENDENCIES dateutil: 1.5 pytz: matplotlib will provide OPTIONAL USETEX DEPENDENCIES dvipng: no ghostscript: /bin/sh: gs: command not found latex: no [Edit setup.cfg to suppress the above messages] ============================================================================ pymods ['pylab'] packages ['matplotlib', 'matplotlib.backends', 'matplotlib.backends.qt4_editor', 'matplotlib.projections', 'matplotlib.testing', 'matplotlib.testing.jpl_units', 'matplotlib.tests', 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid', 'mpl_toolkits.axes_grid1', 'mpl_toolkits.axisartist', 'matplotlib.sphinxext', 'matplotlib.tri', 'matplotlib.delaunay', 'pytz'] warning: no files found matching 'KNOWN_BUGS' warning: no files found matching 'INTERACTIVE' warning: no files found matching 'make.osx' warning: no files found matching 'MANIFEST' warning: no files found matching '__init__.py' warning: no files found matching 'examples/data/*' warning: no files found matching 'lib/mpl_toolkits' warning: no files found matching 'lib/matplotlib/mpl-data/matplotlib.conf' warning: no files found matching 'lib/matplotlib/mpl-data/matplotlib.conf.template' warning: manifest_maker: MANIFEST.in, line 16: 'recursive-include' expects <dir> <pattern1> <pattern2> ... warning: no files found matching 'LICENSE*' under directory 'license' Installing collected packages: matplotlib Running setup.py install for matplotlib basedirlist is: ['/usr/local/', '/usr', '/usr/X11', '/opt/local'] ============================================================================ BUILDING MATPLOTLIB matplotlib: 1.2.1 python: 2.7.2 (default, Oct 11 2012, 20:14:37) [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] platform: darwin REQUIRED DEPENDENCIES numpy: 1.6.1 freetype2: found, but unknown version (no pkg-config) OPTIONAL BACKEND DEPENDENCIES libpng: found, but unknown version (no pkg-config) Tkinter: Tkinter: version not identified, Tk: 8.5, Tcl: 8.5 Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to "import gtk" in your build/install environment Mac OS X native: yes Qt: no Qt4: no PySide: no Cairo: no OPTIONAL DATE/TIMEZONE DEPENDENCIES dateutil: 1.5 pytz: matplotlib will provide OPTIONAL USETEX DEPENDENCIES dvipng: no ghostscript: /bin/sh: gs: command not found latex: no [Edit setup.cfg to suppress the above messages] ============================================================================ .... warning: no files found matching 'KNOWN_BUGS' warning: no files found matching 'INTERACTIVE' warning: no files found matching 'make.osx' warning: no files found matching 'MANIFEST' warning: no files found matching '__init__.py' warning: no files found matching 'examples/data/*' warning: no files found matching 'lib/mpl_toolkits' warning: no files found matching 'lib/matplotlib/mpl-data/matplotlib.conf' warning: no files found matching 'lib/matplotlib/mpl-data/matplotlib.conf.template' warning: manifest_maker: MANIFEST.in, line 16: 'recursive-include' expects <dir> <pattern1> <pattern2> ... warning: no files found matching 'LICENSE*' under directory 'license' Successfully installed matplotlib Cleaning up... Kens-Macbook-Air-2010:~ ken$ pip freeze PyRSS2Gen==1.0.0 Twisted==12.0.0 altgraph==0.9 bdist-mpkg==0.4.4 bonjour-py==0.3 macholib==1.4.2 matplotlib==1.2.1 modulegraph==0.9.1 numpy==1.6.1 py2app==0.6.3 pyOpenSSL==0.13 pyobjc-core==2.3.2a0 pyobjc-framework-AddressBook==2.3.2a0 pyobjc-framework-AppleScriptKit==2.3.2a0 pyobjc-framework-AppleScriptObjC==2.3.2a0 pyobjc-framework-Automator==2.3.2a0 pyobjc-framework-CFNetwork==2.3.2a0 pyobjc-framework-CalendarStore==2.3.2a0 pyobjc-framework-Cocoa==2.3.2a0 pyobjc-framework-Collaboration==2.3.2a0 pyobjc-framework-CoreData==2.3.2a0 pyobjc-framework-CoreLocation==2.3.2a0 pyobjc-framework-CoreText==2.3.2a0 pyobjc-framework-DictionaryServices==2.3.2a0 pyobjc-framework-ExceptionHandling==2.3.2a0 pyobjc-framework-FSEvents==2.3.2a0 pyobjc-framework-InputMethodKit==2.3.2a0 pyobjc-framework-InstallerPlugins==2.3.2a0 pyobjc-framework-InstantMessage==2.3.2a0 pyobjc-framework-InterfaceBuilderKit==2.3.2a0 pyobjc-framework-LatentSemanticMapping==2.3.2a0 pyobjc-framework-LaunchServices==2.3.2a0 pyobjc-framework-Message==2.3.2a0 pyobjc-framework-OpenDirectory==2.3.2a0 pyobjc-framework-PreferencePanes==2.3.2a0 pyobjc-framework-PubSub==2.3.2a0 pyobjc-framework-QTKit==2.3.2a0 pyobjc-framework-Quartz==2.3.2a0 pyobjc-framework-ScreenSaver==2.3.2a0 pyobjc-framework-ScriptingBridge==2.3.2a0 pyobjc-framework-SearchKit==2.3.2a0 pyobjc-framework-ServerNotification==2.3.2a0 pyobjc-framework-ServiceManagement==2.3.2a0 pyobjc-framework-SyncServices==2.3.2a0 pyobjc-framework-SystemConfiguration==2.3.2a0 pyobjc-framework-WebKit==2.3.2a0 pyobjc-framework-XgridFoundation==2.3.2a0 python-dateutil==1.5 wsgiref==0.1.2 xattr==0.6.2 yamlog==0.9 zope.interface==3.5.1 .... Kens-Macbook-Air-2010:~ ken$ sudo pip install -U pyyaml nltk Downloading/unpacking pyyaml Downloading PyYAML-3.10.tar.gz (241kB): 241kB downloaded Running setup.py egg_info for package pyyaml Downloading/unpacking nltk Downloading nltk-2.0.4.zip (1.1MB): 1.1MB downloaded Running setup.py egg_info for package nltk Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.21.tar.gz Extracting in /tmp/tmpJLI8NM Now working in /tmp/tmpJLI8NM/distribute-0.6.21 Building a Distribute egg in /private/tmp/pip-build-root/nltk /private/tmp/pip-build-root/nltk/distribute-0.6.21-py2.7.egg warning: no previously-included files matching '*~' found anywhere in distribution .... Running setup.py install for nltk warning: no previously-included files matching '*~' found anywhere in distribution Successfully installed pyyaml nltk Cleaning up... Kens-Macbook-Air-2010:~ ken$ python Python 2.7.4 (v2.7.4:026ee0057e2d, Apr 6 2013, 11:43:10) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import nltk >>> nltk.download() showing info http://nltk.github.com/nltk_data/