Error installing pandas on a Mac in python 3

Greetings,
I am totally new to Python, I don’t even know if this is the right place to ask this question. If this is the wrong place, I’d be grateful to pointers to the right place. I have python script to run that calls pandas. So I tried to instal the pandas package using: python3 -m pip install pandas. It tried but then dumped 100? error messages and then downloaded the next earliest one, got a fresh slew of errors, and this repeated without resolution. I am running MacOS 10.14.6 on a MacBookpro from late 2013. I installed python 3.10.0. I hope someone can help. Many thanks. Tobias Baskin

         I tried to instal the pandas package using: python3 -m 
         pip install pandas.

That looks correct to me.

Can you provide a transcript of the whole command and error output?
Paste it into a new message between lines containing only triple
backticks (```), i.e.:

```
your transcript here
```

For example, here (my Mac) on a python3 where pandas is already
installed:

[~]fleet2*> python3 -m pip install pandas
Requirement already satisfied: pandas in ./var/venv/3.9.2-homebrew/lib/python3.9/site-packages (1.2.5)
Requirement already satisfied: pytz>=2017.3 in ./var/venv/3.9.2-homebrew/lib/python3.9/site-packages (from pandas) (2019.3)
Requirement already satisfied: python-dateutil>=2.7.3 in ./var/venv/3.9.2-homebrew/lib/python3.9/site-packages (from pandas) (2.8.0)
Requirement already satisfied: numpy>=1.16.5 in ./var/venv/3.9.2-homebrew/lib/python3.9/site-packages (from pandas) (1.21.0)
Requirement already satisfied: six>=1.5 in ./var/venv/3.9.2-homebrew/lib/python3.9/site-packages (from python-dateutil>=2.7.3->pandas) (1.12.0)

If I make a new virtual environment (so that I have something without
pandas installed):

[~]fleet2*> python3 -m venv v1
[~]fleet2*> ./v1/bin/python3 -m pip install pandas
Collecting pandas
  Downloading pandas-1.3.3-cp39-cp39-macosx_10_9_x86_64.whl (11.6 MB)
     >████████████████████████████████| 11.6 MB 1.3 MB/s
Collecting numpy>=1.17.3
  Downloading numpy-1.21.2-cp39-cp39-macosx_10_9_x86_64.whl (17.0 MB)
     >████████████████████████████████| 17.0 MB 1.4 MB/s
Collecting python-dateutil>=2.7.3
  Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting pytz>=2017.3
  Downloading pytz-2021.3-py2.py3-none-any.whl (503 kB)
     >████████████████████████████████| 503 kB 510 kB/s
Collecting six>=1.5
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: six, pytz, python-dateutil, numpy, pandas
Successfully installed numpy-1.21.2 pandas-1.3.3 python-dateutil-2.8.2 pytz-2021.3 six-1.16.0

So we need to see what happens for you.

Cheers,
Cameron Simpson cs@cskk.id.au

If you’re completely new to Python (and thus unfamiliar with the ecosystem), but plan to use Pandas and other data science packages, you might find it easier to get started with a Conda installation from Continuum:

Maybe you should report this on the pip issue tracker: Issues · pypa/pip · GitHub

Also, read some issues that match with your error message, to avoid posting a duplicated issue.

Cameron, thank you. OK, it is kind of long. I just want to mention that I installed a couple of other packages with no problem. But not pandas. Here is what I get after typing that install command:

 ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python3 /private/var/folders/jb/4pnz45ph8xl_7_0059b41r2r0000gq/T/pip-standalone-pip-no2trn2r/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /private/var/folders/jb/4pnz45ph8xl_7_0059b41r2r0000gq/T/pip-build-env-xfwqylxe/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=51.0.0' wheel 'Cython>=0.29.21,<3' 'numpy==1.17.3; python_version=='"'"'3.7'"'"' and (platform_machine!='"'"'arm64'"'"' or platform_system!='"'"'Darwin'"'"') and platform_machine!='"'"'aarch64'"'"'' 'numpy==1.18.3; python_version=='"'"'3.8'"'"' and (platform_machine!='"'"'arm64'"'"' or platform_system!='"'"'Darwin'"'"') and platform_machine!='"'"'aarch64'"'"'' 'numpy==1.19.3; python_version>='"'"'3.9'"'"' and (platform_machine!='"'"'arm64'"'"' or platform_system!='"'"'Darwin'"'"') and platform_machine!='"'"'aarch64'"'"'' 'numpy==1.19.2; python_version=='"'"'3.7'"'"' and platform_machine=='"'"'aarch64'"'"'' 'numpy==1.19.2; python_version=='"'"'3.8'"'"' and platform_machine=='"'"'aarch64'"'"'' 'numpy>=1.20.0; python_version=='"'"'3.8'"'"' and platform_machine=='"'"'arm64'"'"' and platform_system=='"'"'Darwin'"'"'' 'numpy>=1.20.0; python_version=='"'"'3.9'"'"' and platform_machine=='"'"'arm64'"'"' and platform_system=='"'"'Darwin'"'"''
       cwd: None
  Complete output (259 lines):
  Ignoring numpy: markers 'python_version == "3.7" and (platform_machine != "arm64" or platform_system != "Darwin") and platform_machine != "aarch64"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.8" and (platform_machine != "arm64" or platform_system != "Darwin") and platform_machine != "aarch64"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.7" and platform_machine == "aarch64"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.8" and platform_machine == "aarch64"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.8" and platform_machine == "arm64" and platform_system == "Darwin"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.9" and platform_machine == "arm64" and platform_system == "Darwin"' don't match your environment
  Collecting setuptools>=51.0.0
    Using cached setuptools-58.2.0-py3-none-any.whl (946 kB)
  Collecting wheel
    Using cached wheel-0.37.0-py2.py3-none-any.whl (35 kB)
  Collecting Cython<3,>=0.29.21
    Using cached Cython-0.29.24-py2.py3-none-any.whl (979 kB)
  Collecting numpy==1.19.3
    Using cached numpy-1.19.3.zip (7.3 MB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
      Preparing wheel metadata: started
      Preparing wheel metadata: finished with status 'error'
      ERROR: Command errored out with exit status 1:
       command: /usr/local/bin/python3 /var/folders/jb/4pnz45ph8xl_7_0059b41r2r0000gq/T/tmpioxddnt1_in_process.py prepare_metadata_for_build_wheel /var/folders/jb/4pnz45ph8xl_7_0059b41r2r0000gq/T/tmp2qu5gsow
           cwd: /private/var/folders/jb/4pnz45ph8xl_7_0059b41r2r0000gq/T/pip-install-xzbp3y8f/numpy_d79fcaf228bd41b1a98dd91255b364ea
      Complete output (231 lines):
      setup.py:67: RuntimeWarning: NumPy 1.19.3 may not yet support Python 3.10.
        warnings.warn(
      Running from numpy source directory.
      setup.py:480: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
        run_build = parse_setuppy_commands()
      /private/var/folders/jb/4pnz45ph8xl_7_0059b41r2r0000gq/T/pip-install-xzbp3y8f/numpy_d79fcaf228bd41b1a98dd91255b364ea/tools/cythonize.py:67: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
        from distutils.version import LooseVersion
      Processing numpy/random/_bounded_integers.pxd.in
      Processing numpy/random/_philox.pyx
      Processing numpy/random/_bounded_integers.pyx.in
      Processing numpy/random/_sfc64.pyx
      Processing numpy/random/_mt19937.pyx
      Processing numpy/random/bit_generator.pyx
      Processing numpy/random/mtrand.pyx
      Processing numpy/random/_generator.pyx
      Processing numpy/random/_pcg64.pyx
      Processing numpy/random/_common.pyx
      Cythonizing sources
      blas_opt_info:
      blas_mkl_info:
      customize UnixCCompiler
        libraries mkl_rt not found in ['/Library/Frameworks/Python.framework/Versions/3.10/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE
  
      blis_info:
        libraries blis not found in ['/Library/Frameworks/Python.framework/Versions/3.10/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE
  
      openblas_info:
        libraries openblas not found in ['/Library/Frameworks/Python.framework/Versions/3.10/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE
  
      atlas_3_10_blas_threads_info:
      Setting PTATLAS=ATLAS
        libraries tatlas not found in ['/Library/Frameworks/Python.framework/Versions/3.10/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE
  
      atlas_3_10_blas_info:
        libraries satlas not found in ['/Library/Frameworks/Python.framework/Versions/3.10/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE
  
      atlas_blas_threads_info:
      Setting PTATLAS=ATLAS
        libraries ptf77blas,ptcblas,atlas not found in ['/Library/Frameworks/Python.framework/Versions/3.10/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE
  
      atlas_blas_info:
        libraries f77blas,cblas,atlas not found in ['/Library/Frameworks/Python.framework/Versions/3.10/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE
  
      accelerate_info:
        libraries accelerate not found in ['/Library/Frameworks/Python.framework/Versions/3.10/lib', '/usr/local/lib', '/usr/lib']
      Library accelerate was not found. Ignoring
        libraries veclib not found in ['/Library/Frameworks/Python.framework/Versions/3.10/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)]
  
      non-existing path in 'numpy/distutils': 'site.cfg'
      lapack_opt_info:
      lapack_mkl_info:
        libraries mkl_rt not found in ['/Library/Frameworks/Python.framework/Versions/3.10/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE
  
      openblas_lapack_info:
        libraries openblas not found in ['/Library/Frameworks/Python.framework/Versions/3.10/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE
  
      openblas_clapack_info:
        libraries openblas,lapack not found in ['/Library/Frameworks/Python.framework/Versions/3.10/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE
  
      flame_info:
        libraries flame not found in ['/Library/Frameworks/Python.framework/Versions/3.10/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE
  
      atlas_3_10_threads_info:
      Setting PTATLAS=ATLAS
        libraries lapack_atlas not found in /Library/Frameworks/Python.framework/Versions/3.10/lib
        libraries tatlas,tatlas not found in /Library/Frameworks/Python.framework/Versions/3.10/lib
        libraries lapack_atlas not found in /usr/local/lib
        libraries tatlas,tatlas not found in /usr/local/lib
        libraries lapack_atlas not found in /usr/lib
        libraries tatlas,tatlas not found in /usr/lib
      <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
        NOT AVAILABLE
  
      atlas_3_10_info:
        libraries lapack_atlas not found in /Library/Frameworks/Python.framework/Versions/3.10/lib
        libraries satlas,satlas not found in /Library/Frameworks/Python.framework/Versions/3.10/lib
        libraries lapack_atlas not found in /usr/local/lib
        libraries satlas,satlas not found in /usr/local/lib
        libraries lapack_atlas not found in /usr/lib
        libraries satlas,satlas not found in /usr/lib
      <class 'numpy.distutils.system_info.atlas_3_10_info'>
        NOT AVAILABLE
  
      atlas_threads_info:
      Setting PTATLAS=ATLAS
        libraries lapack_atlas not found in /Library/Frameworks/Python.framework/Versions/3.10/lib
        libraries ptf77blas,ptcblas,atlas not found in /Library/Frameworks/Python.framework/Versions/3.10/lib
        libraries lapack_atlas not found in /usr/local/lib
        libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
        libraries lapack_atlas not found in /usr/lib
        libraries ptf77blas,ptcblas,atlas not found in /usr/lib
      <class 'numpy.distutils.system_info.atlas_threads_info'>
        NOT AVAILABLE
  
      atlas_info:
        libraries lapack_atlas not found in /Library/Frameworks/Python.framework/Versions/3.10/lib
        libraries f77blas,cblas,atlas not found in /Library/Frameworks/Python.framework/Versions/3.10/lib
        libraries lapack_atlas not found in /usr/local/lib
        libraries f77blas,cblas,atlas not found in /usr/local/lib
        libraries lapack_atlas not found in /usr/lib
        libraries f77blas,cblas,atlas not found in /usr/lib
      <class 'numpy.distutils.system_info.atlas_info'>
        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.10/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
        warnings.warn(msg)
      running dist_info
      running build_src
      build_src
      building py_modules sources
      creating build
      creating build/src.macosx-10.9-universal2-3.10
      creating build/src.macosx-10.9-universal2-3.10/numpy
      creating build/src.macosx-10.9-universal2-3.10/numpy/distutils
      building library "npymath" sources
      Could not locate executable gfortran
      Could not locate executable f95
      Could not locate executable f90
      Could not locate executable f77
      Could not locate executable xlf90
      Could not locate executable xlf
      Could not locate executable ifort
      Could not locate executable ifc
      Could not locate executable g77
      Could not locate executable g95
      Could not locate executable pgfortran
      don't know how to compile Fortran code on platform 'posix'
      creating build/src.macosx-10.9-universal2-3.10/numpy/core
      creating build/src.macosx-10.9-universal2-3.10/numpy/core/src
      creating build/src.macosx-10.9-universal2-3.10/numpy/core/src/npymath
      conv_template:> build/src.macosx-10.9-universal2-3.10/numpy/core/src/npymath/npy_math_internal.h
        adding 'build/src.macosx-10.9-universal2-3.10/numpy/core/src/npymath' to include_dirs.
      conv_template:> build/src.macosx-10.9-universal2-3.10/numpy/core/src/npymath/ieee754.c
      conv_template:> build/src.macosx-10.9-universal2-3.10/numpy/core/src/npymath/npy_math_complex.c
      None - nothing done with h_files = ['build/src.macosx-10.9-universal2-3.10/numpy/core/src/npymath/npy_math_internal.h']
      building library "npysort" sources
      creating build/src.macosx-10.9-universal2-3.10/numpy/core/src/common
      conv_template:> build/src.macosx-10.9-universal2-3.10/numpy/core/src/common/npy_sort.h
        adding 'build/src.macosx-10.9-universal2-3.10/numpy/core/src/common' to include_dirs.
      creating build/src.macosx-10.9-universal2-3.10/numpy/core/src/npysort
      conv_template:> build/src.macosx-10.9-universal2-3.10/numpy/core/src/npysort/quicksort.c
      conv_template:> build/src.macosx-10.9-universal2-3.10/numpy/core/src/npysort/mergesort.c
      conv_template:> build/src.macosx-10.9-universal2-3.10/numpy/core/src/npysort/timsort.c
      conv_template:> build/src.macosx-10.9-universal2-3.10/numpy/core/src/npysort/heapsort.c
      conv_template:> build/src.macosx-10.9-universal2-3.10/numpy/core/src/npysort/radixsort.c
      conv_template:> build/src.macosx-10.9-universal2-3.10/numpy/core/src/common/npy_partition.h
      conv_template:> build/src.macosx-10.9-universal2-3.10/numpy/core/src/npysort/selection.c
      conv_template:> build/src.macosx-10.9-universal2-3.10/numpy/core/src/common/npy_binsearch.h
      conv_template:> build/src.macosx-10.9-universal2-3.10/numpy/core/src/npysort/binsearch.c
      None - nothing done with h_files = ['build/src.macosx-10.9-universal2-3.10/numpy/core/src/common/npy_sort.h', 'build/src.macosx-10.9-universal2-3.10/numpy/core/src/common/npy_partition.h', 'build/src.macosx-10.9-universal2-3.10/numpy/core/src/common/npy_binsearch.h']
      building library "npyrandom" sources
      building extension "numpy.core._multiarray_tests" sources
      creating build/src.macosx-10.9-universal2-3.10/numpy/core/src/multiarray
      conv_template:> build/src.macosx-10.9-universal2-3.10/numpy/core/src/multiarray/_multiarray_tests.c
      building extension "numpy.core._multiarray_umath" sources
      Traceback (most recent call last):
        File "/var/folders/jb/4pnz45ph8xl_7_0059b41r2r0000gq/T/tmpioxddnt1_in_process.py", line 349, in <module>
          main()
        File "/var/folders/jb/4pnz45ph8xl_7_0059b41r2r0000gq/T/tmpioxddnt1_in_process.py", line 331, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/var/folders/jb/4pnz45ph8xl_7_0059b41r2r0000gq/T/tmpioxddnt1_in_process.py", line 151, in prepare_metadata_for_build_wheel
          return hook(metadata_directory, config_settings)
        File "/private/var/folders/jb/4pnz45ph8xl_7_0059b41r2r0000gq/T/pip-build-env-d4fk4vy4/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 157, in prepare_metadata_for_build_wheel
          self.run_setup()
        File "/private/var/folders/jb/4pnz45ph8xl_7_0059b41r2r0000gq/T/pip-build-env-d4fk4vy4/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 248, in run_setup
          super(_BuildMetaLegacyBackend,
        File "/private/var/folders/jb/4pnz45ph8xl_7_0059b41r2r0000gq/T/pip-build-env-d4fk4vy4/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 142, in run_setup
          exec(compile(code, __file__, 'exec'), locals())
        File "setup.py", line 508, in <module>
          setup_package()
        File "setup.py", line 500, in setup_package
          setup(**metadata)
        File "/private/var/folders/jb/4pnz45ph8xl_7_0059b41r2r0000gq/T/pip-install-xzbp3y8f/numpy_d79fcaf228bd41b1a98dd91255b364ea/numpy/distutils/core.py", line 169, in setup
          return old_setup(**new_attr)
        File "/private/var/folders/jb/4pnz45ph8xl_7_0059b41r2r0000gq/T/pip-build-env-d4fk4vy4/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 165, in setup
          return distutils.core.setup(**attrs)
        File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/distutils/core.py", line 148, in setup
          dist.run_commands()
        File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/distutils/dist.py", line 966, in run_commands
          self.run_command(cmd)
        File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/private/var/folders/jb/4pnz45ph8xl_7_0059b41r2r0000gq/T/pip-build-env-d4fk4vy4/overlay/lib/python3.10/site-packages/setuptools/command/dist_info.py", line 31, in run
          egg_info.run()
        File "/private/var/folders/jb/4pnz45ph8xl_7_0059b41r2r0000gq/T/pip-install-xzbp3y8f/numpy_d79fcaf228bd41b1a98dd91255b364ea/numpy/distutils/command/egg_info.py", line 24, in run
          self.run_command("build_src")
        File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/distutils/cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/private/var/folders/jb/4pnz45ph8xl_7_0059b41r2r0000gq/T/pip-install-xzbp3y8f/numpy_d79fcaf228bd41b1a98dd91255b364ea/numpy/distutils/command/build_src.py", line 144, in run
          self.build_sources()
        File "/private/var/folders/jb/4pnz45ph8xl_7_0059b41r2r0000gq/T/pip-install-xzbp3y8f/numpy_d79fcaf228bd41b1a98dd91255b364ea/numpy/distutils/command/build_src.py", line 161, in build_sources
          self.build_extension_sources(ext)
        File "/private/var/folders/jb/4pnz45ph8xl_7_0059b41r2r0000gq/T/pip-install-xzbp3y8f/numpy_d79fcaf228bd41b1a98dd91255b364ea/numpy/distutils/command/build_src.py", line 318, in build_extension_sources
          sources = self.generate_sources(sources, ext)
        File "/private/var/folders/jb/4pnz45ph8xl_7_0059b41r2r0000gq/T/pip-install-xzbp3y8f/numpy_d79fcaf228bd41b1a98dd91255b364ea/numpy/distutils/command/build_src.py", line 378, in generate_sources
          source = func(extension, build_dir)
        File "numpy/core/setup.py", line 436, in generate_config_h
          moredefs, ignored = cocache.check_types(config_cmd, ext, build_dir)
        File "numpy/core/setup.py", line 47, in check_types
          out = check_types(*a, **kw)
        File "numpy/core/setup.py", line 292, in check_types
          raise SystemError(
      SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel.
      ----------------------------------------
  WARNING: Discarding https://files.pythonhosted.org/packages/cb/c0/7b3d69e6ee68bc54c97ba51f8c3c3e43ff1dbc7bd97347cc19a1f944e60a/numpy-1.19.3.zip#sha256=35bf5316af8dc7c7db1ad45bec603e5fb28671beb98ebd1d65e8059efcfd3b72 (from https://pypi.org/simple/numpy/) (requires-python:>=3.6). Command errored out with exit status 1: /usr/local/bin/python3 /var/folders/jb/4pnz45ph8xl_7_0059b41r2r0000gq/T/tmpioxddnt1_in_process.py prepare_metadata_for_build_wheel /var/folders/jb/4pnz45ph8xl_7_0059b41r2r0000gq/T/tmp2qu5gsow Check the logs for full command output.
  ERROR: Could not find a version that satisfies the requirement numpy==1.19.3 (from versions: 1.3.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.6.1, 1.6.2, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.10.0.post2, 1.10.1, 1.10.2, 1.10.4, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.12.0, 1.12.1, 1.13.0rc1, 1.13.0rc2, 1.13.0, 1.13.1, 1.13.3, 1.14.0rc1, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.14.5, 1.14.6, 1.15.0rc1, 1.15.0rc2, 1.15.0, 1.15.1, 1.15.2, 1.15.3, 1.15.4, 1.16.0rc1, 1.16.0rc2, 1.16.0, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.16.6, 1.17.0rc1, 1.17.0rc2, 1.17.0, 1.17.1, 1.17.2, 1.17.3, 1.17.4, 1.17.5, 1.18.0rc1, 1.18.0, 1.18.1, 1.18.2, 1.18.3, 1.18.4, 1.18.5, 1.19.0rc1, 1.19.0rc2, 1.19.0, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.19.5, 1.20.0rc1, 1.20.0rc2, 1.20.0, 1.20.1, 1.20.2, 1.20.3, 1.21.0rc1, 1.21.0rc2, 1.21.0, 1.21.1, 1.21.2)
  ERROR: No matching distribution found for numpy==1.19.3
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/71/65/3ab03ef46613e66880dba5b2c2cb5836938f0219389a11c10cfdc617e836/pandas-1.3.3.tar.gz#sha256=272c8cb14aa9793eada6b1ebe81994616e647b5892a370c7135efb2924b701df (from https://pypi.org/simple/pandas/) (requires-python:>=3.7.1). Command errored out with exit status 1: /usr/local/bin/python3 /private/var/folders/jb/4pnz45ph8xl_7_0059b41r2r0000gq/T/pip-standalone-pip-no2trn2r/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /private/var/folders/jb/4pnz45ph8xl_7_0059b41r2r0000gq/T/pip-build-env-xfwqylxe/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=51.0.0' wheel 'Cython>=0.29.21,<3' 'numpy==1.17.3; python_version=='"'"'3.7'"'"' and (platform_machine!='"'"'arm64'"'"' or platform_system!='"'"'Darwin'"'"') and platform_machine!='"'"'aarch64'"'"'' 'numpy==1.18.3; python_version=='"'"'3.8'"'"' and (platform_machine!='"'"'arm64'"'"' or platform_system!='"'"'Darwin'"'"') and platform_machine!='"'"'aarch64'"'"'' 'numpy==1.19.3; python_version>='"'"'3.9'"'"' and (platform_machine!='"'"'arm64'"'"' or platform_system!='"'"'Darwin'"'"') and platform_machine!='"'"'aarch64'"'"'' 'numpy==1.19.2; python_version=='"'"'3.7'"'"' and platform_machine=='"'"'aarch64'"'"'' 'numpy==1.19.2; python_version=='"'"'3.8'"'"' and platform_machine=='"'"'aarch64'"'"'' 'numpy>=1.20.0; python_version=='"'"'3.8'"'"' and platform_machine=='"'"'arm64'"'"' and platform_system=='"'"'Darwin'"'"'' 'numpy>=1.20.0; python_version=='"'"'3.9'"'"' and platform_machine=='"'"'arm64'"'"' and platform_system=='"'"'Darwin'"'"'' Check the logs for full command output

Can you spot something?? Tobias

Thank you. As you can see below the “error message” is complex. I don’t understand it. I have searched in general for problems installing pandas and I could not understand the answers or was not sure that it applied to me. But checking with pip is a great idea. TB

1 Like

Skip, Thanks. UM, I have seen references to Anaconda but I am confused about what it is. I expect to be running python scripts from the terminal window. Is Anaconda a separate program and interface? or does it load things that are then accessed via the terminal? And what is Jupyter?? Thank you! Tobias

Is Anaconda a separate program and interface? or does it load things that are then accessed via the terminal? And what is Jupyter??

They are Python implementations, separate than CPython. You could search some references here:

Anyway, you can keep going with a standard Python installation, and work on your installation issue :slight_smile:

Hi Tobias,

pip is trying to build certain scientific packages written in a mixture of Python, C and Fortran from source and appears to be failing because you don’t have a working C (and Fortran) development environment set up. I don’t know how you would go about setting that up on Mac OS, maybe somebody else can help.

Normally this is not something you should need, since most packages (including pandas and numpy) should come as pre-built binary packages. However, as Python 3.10 is brand new, many of these packages have not yet been updated.

The easiest solution is probably to switch to Python 3.9 for now and come back to Python 3.10 in a month or two.

2 Likes

Correction: Anaconda is a different distribution of Python, separate from the Python.org distribution. It still uses the CPython interpreter.

There are also implementations of the Python language other than CPython, such as PyPy and IronPython.

2 Likes

You are right @tjol, sorry :sweat_smile:

Pandas does not yet have macOS wheels for Python 3.10 yet. The easiest way to get a working copy of Pandas is to install Python 3.9 instead, or as other suggested use conda.