Ticket #94 (closed defect: fixed)
Can't install pyyaml with easy_install on Mac OS X
| Reported by: | Stephen.Pascoe@… | Owned by: | xi |
|---|---|---|---|
| Priority: | normal | Component: | pyyaml |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Just thought I'd try out YAML on my Mac and did
$ easy_install PyYaml ... unable to execute gcc: No such file or directory libyaml appears not to be installed (if libyaml is installed, you may need to specify the option --include-dirs or uncomment and modify the parameter include_dirs in setup.cfg)
If I want to use YAML in my projects easy_install is pretty much essential.
I don't know whether it works if gcc or libyaml is installed.
Attachments
Change History
comment:2 Changed 5 years ago by Stephen.Pascoe@…
- Status changed from new to closed
- Resolution set to fixed
Fixed with setuptools-0.6c9
I diagnosed this problem today. setuptools was naming the egg PyYAML-3.06-py2.5-macosx-10.5-i386.egg when pkg_resources.get_supported_platform() returns 'macosx-10.5.1-i386'. easy_install was then deleting the egg as it didn't match the platform.
Upgrading to the latest setuptools fixes it.
Note the way setup.py attempts to build the extension means the egg will be labeled with the platform even when it isn't necessary for a Python-only egg.

Can you post the complete output of the script? Please note the lines you posted here are not an indication of an error, it's a warning meaning that libyaml bindings will not be installed. PyYAML could still be installed correctly.