pip fails to install packages on moutain loin (Mac OS 10.8.2)

Prasad, Ramit ramit.prasad at jpmorgan.com
Thu Oct 18 18:16:23 EDT 2012


Peng Yu wrote
> Hi,
> 
> I installed Python using python-2.7.3-macosx10.6.dmg on my Mac OS
> 10.8.2.
> 
> When try to use pip to install packages, I get the following message.
> Then the installation fails.
> 
> gcc-4.2 not found, using clang instead
> 
> 
> I then create a link from /usr/bin/gcc to gcc-4.2. Then I run pip
> again, I get the following error message.
> 
> Does anybody have a solution to install python on Mac OS 10.8.2 so
> that packages can be installed with pip?
> 
>     /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/exception:
> 42:28: error: bits/c++config.h: No such file or directory
>     In file included from /Developer/SDKs/MacOSX10.6.sdk/usr/include/c+
> +/4.2.1/bits/stl_algobase.h:70,
>                      from /Developer/SDKs/MacOSX10.6.sdk/usr/include/c+
> +/4.2.1/bits/char_traits.h:46,
>                      from /Developer/SDKs/MacOSX10.6.sdk/usr/include/c+
> +/4.2.1/string:47,
>                      from /Developer/SDKs/MacOSX10.6.sdk/usr/include/c+
> +/4.2.1/stdexcept:44,
> 
> Regards,
> Peng

I would install python+virtualenv+pip from MacPorts to keep
it separate from the OS X system Python. MacPorts will take 
care of everything for you as long as you have Xcode installed.	

`sudo ports install py27-pip`


Ramit Prasad


This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  



More information about the Python-list mailing list