halotools: pip install failure on MacOS High Sierra 10.13

I tried to install Halotools with pip install halotools and the install fails with the following error:

Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/02/_3trvknx2199yf629jn2hm3r0000gn/T/pip-build-syx0iqkf/halotools/

About this issue

  • Original URL
  • State: open
  • Created 9 years ago
  • Comments: 16 (11 by maintainers)

Most upvoted comments

@youmin817 I have the similar issue and I fixed it by running export CC=/usr/bin/clang export CXX=/usr/bin/clang++

@JiaminShi Thank you. I had similar problem. I used export CC=/usr/bin/clang export CXX=/usr/bin/clang++ and my problem solved.

Okay, there is a VERY simple solution. Setting the CXX variable is key. export CXX=clang solves the problem. I think the astropy setup utils could be slightly more informative when the c++ or the c compilers are not set.

ok, all is good. I think we should consider adding a note about setting CXX=clang to the installation troubleshooting page. @aphearin thoughts? https://halotools.readthedocs.io/en/latest/installation_troubleshooting.html#installation-troubleshooting