title: Problems installing Pandas and yfinance with python 3.9 on my mac
body: <p>I am trying to use the python -m pip install yfinance  command to install yfinance. The command is referencing the python 3.9.0</p>
  <p>When I try to do this, I receive the following:</p>
  <pre><code>Collecting yfinance
    Using cached yfinance-0.1.55.tar.gz (23 kB)
  Collecting pandas&gt;=0.24
    Using cached pandas-1.1.3.tar.gz (5.2 MB)
    Installing build dependencies ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/local/bin/python3 /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/wf/7bsfd_1x77b12zq1y6w6kd000000gn/T/pip-build-env-qtruga5a/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'Cython&gt;=0.29.21,&lt;3' 'numpy==1.15.4; python_version=='&quot;'&quot;'3.6'&quot;'&quot;' and platform_system!='&quot;'&quot;'AIX'&quot;'&quot;'' 'numpy==1.15.4; python_version=='&quot;'&quot;'3.7'&quot;'&quot;' and platform_system!='&quot;'&quot;'AIX'&quot;'&quot;'' 'numpy==1.17.3; python_version&gt;='&quot;'&quot;'3.8'&quot;'&quot;' and platform_system!='&quot;'&quot;'AIX'&quot;'&quot;'' 'numpy==1.16.0; python_version=='&quot;'&quot;'3.6'&quot;'&quot;' and platform_system=='&quot;'&quot;'AIX'&quot;'&quot;'' 'numpy==1.16.0; python_version=='&quot;'&quot;'3.7'&quot;'&quot;' and platform_system=='&quot;'&quot;'AIX'&quot;'&quot;'' 'numpy==1.17.3; python_version&gt;='&quot;'&quot;'3.8'&quot;'&quot;' and platform_system=='&quot;'&quot;'AIX'&quot;'&quot;''
         cwd: None
    Complete output (274 lines):
    Ignoring numpy: markers 'python_version == &quot;3.6&quot; and platform_system != &quot;AIX&quot;' don't match your environment
    Ignoring numpy: markers 'python_version == &quot;3.7&quot; and platform_system != &quot;AIX&quot;' don't match your environment
    Ignoring numpy: markers 'python_version == &quot;3.6&quot; and platform_system == &quot;AIX&quot;' don't match your environment
    Ignoring numpy: markers 'python_version == &quot;3.7&quot; and platform_system == &quot;AIX&quot;' don't match your environment
    Ignoring numpy: markers 'python_version &gt;= &quot;3.8&quot; and platform_system == &quot;AIX&quot;' don't match your environment
    Collecting setuptools
      Using cached setuptools-50.3.1-py3-none-any.whl (785 kB)
    Collecting wheel
      Using cached wheel-0.35.1-py2.py3-none-any.whl (33 kB)
    Collecting Cython&lt;3,&gt;=0.29.21
      Using cached Cython-0.29.21-py2.py3-none-any.whl (974 kB)
    Collecting numpy==1.17.3
      Using cached numpy-1.17.3.zip (6.4 MB)
    Using legacy 'setup.py install' for numpy, since package 'wheel' is not installed.
    Installing collected packages: setuptools, wheel, Cython, numpy
        Running setup.py install for numpy: started
        Running setup.py install for numpy: finished with status 'error'
        ERROR: Command errored out with exit status 1:
         command: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'/private/var/folders/wf/7bsfd_1x77b12zq1y6w6kd000000gn/T/pip-install-zco_j2o6/numpy/setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'/private/var/folders/wf/7bsfd_1x77b12zq1y6w6kd000000gn/T/pip-install-zco_j2o6/numpy/setup.py'&quot;'&quot;';f=getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__);code=f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' install --record /private/var/folders/wf/7bsfd_1x77b12zq1y6w6kd000000gn/T/pip-record-rc02kt8n/install-record.txt --single-version-externally-managed --prefix /private/var/folders/wf/7bsfd_1x77b12zq1y6w6kd000000gn/T/pip-build-env-qtruga5a/overlay --compile --install-headers /private/var/folders/wf/7bsfd_1x77b12zq1y6w6kd000000gn/T/pip-build-env-qtruga5a/overlay/include/python3.9/numpy
             cwd: /private/var/folders/wf/7bsfd_1x77b12zq1y6w6kd000000gn/T/pip-install-zco_j2o6/numpy/
        Complete output (251 lines):
        Running from numpy source directory.
    
        Note: if you need reliable uninstall behavior, then install
        with pip instead of using `setup.py install`:
    
          - `pip install .`       (from a git repo or downloaded source
                                   release)
          - `pip install numpy`   (last NumPy release on PyPi)
    
    
        blas_opt_info:
        blas_mkl_info:
        customize UnixCCompiler
          libraries mkl_rt not found in ['/Library/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE
    
        blis_info:
        customize UnixCCompiler
          libraries blis not found in ['/Library/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE
    
        openblas_info:
        customize UnixCCompiler
        customize UnixCCompiler
          libraries openblas not found in ['/Library/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE
    
        atlas_3_10_blas_threads_info:
        Setting PTATLAS=ATLAS
        customize UnixCCompiler
          libraries tatlas not found in ['/Library/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE
    
        atlas_3_10_blas_info:
        customize UnixCCompiler
          libraries satlas not found in ['/Library/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE
    
        atlas_blas_threads_info:
        Setting PTATLAS=ATLAS
        customize UnixCCompiler
          libraries ptf77blas,ptcblas,atlas not found in ['/Library/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE
    
        atlas_blas_info:
        customize UnixCCompiler
          libraries f77blas,cblas,atlas not found in ['/Library/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE
    
        accelerate_info:
        customize UnixCCompiler
          libraries accelerate not found in ['/Library/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
        Library accelerate was not found. Ignoring
        customize UnixCCompiler
          libraries veclib not found in ['/Library/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
        Library veclib was not found. Ignoring
          FOUND:
            extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers']
            extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
            define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]
    
          FOUND:
            extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers']
            extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
            define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]
    
        xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
        non-existing path in 'numpy/distutils': 'site.cfg'
        lapack_opt_info:
        lapack_mkl_info:
        customize UnixCCompiler
          libraries mkl_rt not found in ['/Library/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE
    
        openblas_lapack_info:
        customize UnixCCompiler
        customize UnixCCompiler
          libraries openblas not found in ['/Library/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE
    
        openblas_clapack_info:
        customize UnixCCompiler
        customize UnixCCompiler
          libraries openblas,lapack not found in ['/Library/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE
    
        flame_info:
        customize UnixCCompiler
          libraries flame not found in ['/Library/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
          NOT AVAILABLE
    
        atlas_3_10_threads_info:
        Setting PTATLAS=ATLAS
        customize UnixCCompiler
          libraries lapack_atlas not found in /Library/Frameworks/Python.framework/Versions/3.9/lib
        customize UnixCCompiler
          libraries tatlas,tatlas not found in /Library/Frameworks/Python.framework/Versions/3.9/lib
        customize UnixCCompiler
          libraries lapack_atlas not found in /usr/local/lib
        customize UnixCCompiler
          libraries tatlas,tatlas not found in /usr/local/lib
        customize UnixCCompiler
          libraries lapack_atlas not found in /usr/lib
        customize UnixCCompiler
          libraries tatlas,tatlas not found in /usr/lib
        &lt;class 'numpy.distutils.system_info.atlas_3_10_threads_info'&gt;
          NOT AVAILABLE
    
        atlas_3_10_info:
        customize UnixCCompiler
          libraries lapack_atlas not found in /Library/Frameworks/Python.framework/Versions/3.9/lib
        customize UnixCCompiler
          libraries satlas,satlas not found in /Library/Frameworks/Python.framework/Versions/3.9/lib
        customize UnixCCompiler
          libraries lapack_atlas not found in /usr/local/lib
        customize UnixCCompiler
          libraries satlas,satlas not found in /usr/local/lib
        customize UnixCCompiler
          libraries lapack_atlas not found in /usr/lib
        customize UnixCCompiler
          libraries satlas,satlas not found in /usr/lib
        &lt;class 'numpy.distutils.system_info.atlas_3_10_info'&gt;
          NOT AVAILABLE
    
        atlas_threads_info:
        Setting PTATLAS=ATLAS
        customize UnixCCompiler
          libraries lapack_atlas not found in /Library/Frameworks/Python.framework/Versions/3.9/lib
        customize UnixCCompiler
          libraries ptf77blas,ptcblas,atlas not found in /Library/Frameworks/Python.framework/Versions/3.9/lib
        customize UnixCCompiler
          libraries lapack_atlas not found in /usr/local/lib
        customize UnixCCompiler
          libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
        customize UnixCCompiler
          libraries lapack_atlas not found in /usr/lib
        customize UnixCCompiler
          libraries ptf77blas,ptcblas,atlas not found in /usr/lib
        &lt;class 'numpy.distutils.system_info.atlas_threads_info'&gt;
          NOT AVAILABLE
    
        atlas_info:
        customize UnixCCompiler
          libraries lapack_atlas not found in /Library/Frameworks/Python.framework/Versions/3.9/lib
        customize UnixCCompiler
          libraries f77blas,cblas,atlas not found in /Library/Frameworks/Python.framework/Versions/3.9/lib
        customize UnixCCompiler
          libraries lapack_atlas not found in /usr/local/lib
        customize UnixCCompiler
          libraries f77blas,cblas,atlas not found in /usr/local/lib
        customize UnixCCompiler
          libraries lapack_atlas not found in /usr/lib
        customize UnixCCompiler
          libraries f77blas,cblas,atlas not found in /usr/lib
        &lt;class 'numpy.distutils.system_info.atlas_info'&gt;
          NOT AVAILABLE
    
          FOUND:
            extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers']
            extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
            define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]
    
        /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
          warnings.warn(msg)
        running install
        running build
        running config_cc
        unifing config_cc, config, build_clib, build_ext, build commands --compiler options
        running config_fc
        unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
        running build_src
        build_src
        building py_modules sources
        creating build
        creating build/src.macosx-10.9-x86_64-3.9
        creating build/src.macosx-10.9-x86_64-3.9/numpy
        creating build/src.macosx-10.9-x86_64-3.9/numpy/distutils
        building library &quot;npymath&quot; sources
        get_default_fcompiler: matching types: '['gnu95', 'nag', 'absoft', 'ibm', 'intel', 'gnu', 'g95', 'pg']'
        customize Gnu95FCompiler
        Could not locate executable gfortran
        Could not locate executable f95
        customize NAGFCompiler
        customize AbsoftFCompiler
        Could not locate executable f90
        Could not locate executable f77
        customize IBMFCompiler
        Could not locate executable xlf90
        Could not locate executable xlf
        customize IntelFCompiler
        Could not locate executable ifort
        Could not locate executable ifc
        customize GnuFCompiler
        Could not locate executable g77
        customize G95FCompiler
        Could not locate executable g95
        customize PGroupFCompiler
        Could not locate executable pgfortran
        don't know how to compile Fortran code on platform 'posix'
        C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g
    
        compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c'
        gcc: _configtest.c
        xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
        failure.
        removing: _configtest.c _configtest.o
        Traceback (most recent call last):
          File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
          File &quot;/private/var/folders/wf/7bsfd_1x77b12zq1y6w6kd000000gn/T/pip-install-zco_j2o6/numpy/setup.py&quot;, line 443, in &lt;module&gt;
            setup_package()
          File &quot;/private/var/folders/wf/7bsfd_1x77b12zq1y6w6kd000000gn/T/pip-install-zco_j2o6/numpy/setup.py&quot;, line 435, in setup_package
            setup(**metadata)
          File &quot;/private/var/folders/wf/7bsfd_1x77b12zq1y6w6kd000000gn/T/pip-install-zco_j2o6/numpy/numpy/distutils/core.py&quot;, line 171, in setup
            return old_setup(**new_attr)
          File &quot;/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/__init__.py&quot;, line 165, in setup
            return distutils.core.setup(**attrs)
          File &quot;/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py&quot;, line 148, in setup
            dist.run_commands()
          File &quot;/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py&quot;, line 966, in run_commands
            self.run_command(cmd)
          File &quot;/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py&quot;, line 985, in run_command
            cmd_obj.run()
          File &quot;/private/var/folders/wf/7bsfd_1x77b12zq1y6w6kd000000gn/T/pip-install-zco_j2o6/numpy/numpy/distutils/command/install.py&quot;, line 62, in run
            r = self.setuptools_run()
          File &quot;/private/var/folders/wf/7bsfd_1x77b12zq1y6w6kd000000gn/T/pip-install-zco_j2o6/numpy/numpy/distutils/command/install.py&quot;, line 36, in setuptools_run
            return distutils_install.run(self)
          File &quot;/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/install.py&quot;, line 546, in run
            self.run_command('build')
          File &quot;/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py&quot;, line 313, in run_command
            self.distribution.run_command(command)
          File &quot;/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py&quot;, line 985, in run_command
            cmd_obj.run()
          File &quot;/private/var/folders/wf/7bsfd_1x77b12zq1y6w6kd000000gn/T/pip-install-zco_j2o6/numpy/numpy/distutils/command/build.py&quot;, line 47, in run
            old_build.run(self)
          File &quot;/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build.py&quot;, line 135, in run
            self.run_command(cmd_name)
          File &quot;/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py&quot;, line 313, in run_command
            self.distribution.run_command(command)
          File &quot;/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py&quot;, line 985, in run_command
            cmd_obj.run()
          File &quot;/private/var/folders/wf/7bsfd_1x77b12zq1y6w6kd000000gn/T/pip-install-zco_j2o6/numpy/numpy/distutils/command/build_src.py&quot;, line 142, in run
            self.build_sources()
          File &quot;/private/var/folders/wf/7bsfd_1x77b12zq1y6w6kd000000gn/T/pip-install-zco_j2o6/numpy/numpy/distutils/command/build_src.py&quot;, line 153, in build_sources
            self.build_library_sources(*libname_info)
          File &quot;/private/var/folders/wf/7bsfd_1x77b12zq1y6w6kd000000gn/T/pip-install-zco_j2o6/numpy/numpy/distutils/command/build_src.py&quot;, line 286, in build_library_sources
            sources = self.generate_sources(sources, (lib_name, build_info))
          File &quot;/private/var/folders/wf/7bsfd_1x77b12zq1y6w6kd000000gn/T/pip-install-zco_j2o6/numpy/numpy/distutils/command/build_src.py&quot;, line 369, in generate_sources
            source = func(extension, build_dir)
          File &quot;numpy/core/setup.py&quot;, line 669, in get_mathlib_info
            raise RuntimeError(&quot;Broken toolchain: cannot link a simple C program&quot;)
        RuntimeError: Broken toolchain: cannot link a simple C program
        ----------------------------------------
    ERROR: Command errored out with exit status 1: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'/private/var/folders/wf/7bsfd_1x77b12zq1y6w6kd000000gn/T/pip-install-zco_j2o6/numpy/setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'/private/var/folders/wf/7bsfd_1x77b12zq1y6w6kd000000gn/T/pip-install-zco_j2o6/numpy/setup.py'&quot;'&quot;';f=getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__);code=f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' install --record /private/var/folders/wf/7bsfd_1x77b12zq1y6w6kd000000gn/T/pip-record-rc02kt8n/install-record.txt --single-version-externally-managed --prefix /private/var/folders/wf/7bsfd_1x77b12zq1y6w6kd000000gn/T/pip-build-env-qtruga5a/overlay --compile --install-headers /private/var/folders/wf/7bsfd_1x77b12zq1y6w6kd000000gn/T/pip-build-env-qtruga5a/overlay/include/python3.9/numpy Check the logs for full command output.
    ----------------------------------------
  ERROR: Command errored out with exit status 1: /usr/local/bin/python3 /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/wf/7bsfd_1x77b12zq1y6w6kd000000gn/T/pip-build-env-qtruga5a/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel 'Cython&gt;=0.29.21,&lt;3' 'numpy==1.15.4; python_version=='&quot;'&quot;'3.6'&quot;'&quot;' and platform_system!='&quot;'&quot;'AIX'&quot;'&quot;'' 'numpy==1.15.4; python_version=='&quot;'&quot;'3.7'&quot;'&quot;' and platform_system!='&quot;'&quot;'AIX'&quot;'&quot;'' 'numpy==1.17.3; python_version&gt;='&quot;'&quot;'3.8'&quot;'&quot;' and platform_system!='&quot;'&quot;'AIX'&quot;'&quot;'' 'numpy==1.16.0; python_version=='&quot;'&quot;'3.6'&quot;'&quot;' and platform_system=='&quot;'&quot;'AIX'&quot;'&quot;'' 'numpy==1.16.0; python_version=='&quot;'&quot;'3.7'&quot;'&quot;' and platform_system=='&quot;'&quot;'AIX'&quot;'&quot;'' 'numpy==1.17.3; python_version&gt;='&quot;'&quot;'3.8'&quot;'&quot;' and platform_system=='&quot;'&quot;'AIX'&quot;'&quot;'' Check the logs for full command output.
  </code></pre>
  <p>How do I fix this? Does it have to do with the version of python that I am on? Previously I have had no problems with numpy and pandas.</p>