Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #31688

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

From "Prasad, Ramit" <ramit.prasad@jpmorgan.com>
Subject RE: pip fails to install packages on moutain loin (Mac OS 10.8.2)
Date 2012-10-18 22:16 +0000
References <53b38fa2-ea8b-4225-bdf3-b9bcbde31743@o5g2000yqi.googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.2477.1350598593.27098.python-list@python.org> (permalink)

Show all headers | View raw


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.  

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

pip fails to install packages on moutain loin (Mac OS 10.8.2) Peng Yu <pengyu.ut@gmail.com> - 2012-10-18 15:03 -0700
  RE: pip fails to install packages on moutain loin (Mac OS 10.8.2) "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-10-18 22:16 +0000
  Re: pip fails to install packages on moutain loin (Mac OS 10.8.2) Ned Deily <nad@acm.org> - 2012-10-18 15:43 -0700
  Re: pip fails to install packages on moutain loin (Mac OS 10.8.2) Ned Deily <nad@acm.org> - 2012-10-18 15:46 -0700

csiph-web