title: install bottleneck by pip error (macos) ERROR: Failed building wheel for bottleneck; error: command 'gcc' failed with exit status 1
body: <p>I am installing <strong>bottleneck</strong> by <code>python3 -m pip install bottleneck</code>. My Python version is 3.7 and my system is Mac OS. I got the following errors:</p>
  
  <pre><code>Building wheel for bottleneck (setup.py) ... error 
  </code></pre>
  
  <p>and </p>
  
  <pre><code>error: command 'gcc' failed with exit status 1.
  </code></pre>
  
  <p>I have already installed the <code>numpy</code> and <code>wheel</code> packages.</p>
  
  <p>Detailed message:</p>
  
  <pre><code>Collecting bottleneck
    Using cached https://files.pythonhosted.org/packages/05/ae/cedf5323f398ab4e4ff92d6c431a3e1c6a186f9b41ab3e8258dff786a290/Bottleneck-1.2.1.tar.gz
  Requirement already satisfied: numpy in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from bottleneck) (1.16.2)
  Building wheels for collected packages: bottleneck
    Building wheel for bottleneck (setup.py) ... error
    ERROR: Complete output from command /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/5r/8xqw7gg166nbrf4xp234kfhw00ggg5/T/pip-install-85p6c0ma/bottleneck/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/5r/8xqw7gg166nbrf4xp234kfhw00ggg5/T/pip-wheel-6xd7l92k --python-tag cp37:
    ERROR: running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.9-x86_64-3.7
    creating build/lib.macosx-10.9-x86_64-3.7/bottleneck
    copying bottleneck/version.py -&gt; build/lib.macosx-10.9-x86_64-3.7/bottleneck
    copying bottleneck/__init__.py -&gt; build/lib.macosx-10.9-x86_64-3.7/bottleneck
    creating build/lib.macosx-10.9-x86_64-3.7/bottleneck/benchmark
    copying bottleneck/benchmark/bench_detailed.py -&gt; build/lib.macosx-10.9-x86_64-3.7/bottleneck/benchmark
    copying bottleneck/benchmark/autotimeit.py -&gt; build/lib.macosx-10.9-x86_64-3.7/bottleneck/benchmark
    copying bottleneck/benchmark/__init__.py -&gt; build/lib.macosx-10.9-x86_64-3.7/bottleneck/benchmark
    copying bottleneck/benchmark/bench.py -&gt; build/lib.macosx-10.9-x86_64-3.7/bottleneck/benchmark
    creating build/lib.macosx-10.9-x86_64-3.7/bottleneck/slow
    copying bottleneck/slow/reduce.py -&gt; build/lib.macosx-10.9-x86_64-3.7/bottleneck/slow
    copying bottleneck/slow/__init__.py -&gt; build/lib.macosx-10.9-x86_64-3.7/bottleneck/slow
    copying bottleneck/slow/nonreduce.py -&gt; build/lib.macosx-10.9-x86_64-3.7/bottleneck/slow
    copying bottleneck/slow/move.py -&gt; build/lib.macosx-10.9-x86_64-3.7/bottleneck/slow
    copying bottleneck/slow/nonreduce_axis.py -&gt; build/lib.macosx-10.9-x86_64-3.7/bottleneck/slow
    creating build/lib.macosx-10.9-x86_64-3.7/bottleneck/tests
    copying bottleneck/tests/nonreduce_axis_test.py -&gt; build/lib.macosx-10.9-x86_64-3.7/bottleneck/tests
    copying bottleneck/tests/scalar_input_test.py -&gt; build/lib.macosx-10.9-x86_64-3.7/bottleneck/tests
    copying bottleneck/tests/reduce_test.py -&gt; build/lib.macosx-10.9-x86_64-3.7/bottleneck/tests
    copying bottleneck/tests/util.py -&gt; build/lib.macosx-10.9-x86_64-3.7/bottleneck/tests
    copying bottleneck/tests/move_test.py -&gt; build/lib.macosx-10.9-x86_64-3.7/bottleneck/tests
    copying bottleneck/tests/__init__.py -&gt; build/lib.macosx-10.9-x86_64-3.7/bottleneck/tests
    copying bottleneck/tests/input_modifcation_test.py -&gt; build/lib.macosx-10.9-x86_64-3.7/bottleneck/tests
    copying bottleneck/tests/nonreduce_test.py -&gt; build/lib.macosx-10.9-x86_64-3.7/bottleneck/tests
    copying bottleneck/tests/list_input_test.py -&gt; build/lib.macosx-10.9-x86_64-3.7/bottleneck/tests
    creating build/lib.macosx-10.9-x86_64-3.7/bottleneck/src
    copying bottleneck/src/__init__.py -&gt; build/lib.macosx-10.9-x86_64-3.7/bottleneck/src
    copying bottleneck/src/template.py -&gt; build/lib.macosx-10.9-x86_64-3.7/bottleneck/src
    copying bottleneck/LICENSE -&gt; build/lib.macosx-10.9-x86_64-3.7/bottleneck
    running build_ext
    building 'bottleneck.reduce' extension
    creating build/temp.macosx-10.9-x86_64-3.7
    creating build/temp.macosx-10.9-x86_64-3.7/bottleneck
    creating build/temp.macosx-10.9-x86_64-3.7/bottleneck/src
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c bottleneck/src/reduce.c -o build/temp.macosx-10.9-x86_64-3.7/bottleneck/src/reduce.o -O2
    xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
    ERROR: Failed building wheel for bottleneck
    Running setup.py clean for bottleneck
  Failed to build bottleneck
  Installing collected packages: bottleneck
    Running setup.py install for bottleneck ... error
      ERROR: Complete output from command /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/5r/8xqw7gg166nbrf4xp234kfhw00ggg5/T/pip-install-85p6c0ma/bottleneck/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/5r/8xqw7gg166nbrf4xp234kfhw00ggg5/T/pip-record-drpl_77t/install-record.txt --single-version-externally-managed --compile:
      ERROR: running install
      running build
      running build_py
      running build_ext
      building 'bottleneck.reduce' extension
      creating build/temp.macosx-10.9-x86_64-3.7
      creating build/temp.macosx-10.9-x86_64-3.7/bottleneck
      creating build/temp.macosx-10.9-x86_64-3.7/bottleneck/src
      gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c bottleneck/src/reduce.c -o build/temp.macosx-10.9-x86_64-3.7/bottleneck/src/reduce.o -O2
      xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
      error: command 'gcc' failed with exit status 1
      ----------------------------------------
  ERROR: Command "/Library/Frameworks/Python.framework/Versions/3.7/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/5r/8xqw7gg166nbrf4xp234kfhw00ggg5/T/pip-install-85p6c0ma/bottleneck/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/5r/8xqw7gg166nbrf4xp234kfhw00ggg5/T/pip-record-drpl_77t/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/5r/8xqw7gg166nbrf4xp234kfhw00ggg5/T/pip-install-85p6c0ma/bottleneck/
  </code></pre>
  
  <p>Could you kindly let me know what I can do to fix the error and install the package?</p>