Skip to content

Basemap fails to install using pip on macOS (M1) #596

@unbeatable-101

Description

@unbeatable-101
Collecting basemap
  Using cached basemap-1.3.9.zip (156 kB)
  Installing build dependencies ... error
  error: subprocess-exited-with-error

  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [22 lines of output]
      Ignoring numpy: markers 'python_version == "3.10"' don't match your environment
      Ignoring numpy: markers 'sys_platform == "darwin" and (python_version >= "3.7" and python_version <= "3.9")' don't match your environment
      Ignoring numpy: markers 'sys_platform != "darwin" and (python_version >= "3.7" and python_version <= "3.9")' don't match your environment
      Ignoring numpy: markers 'python_version == "2.7" or (python_version >= "3.4" and python_version <= "3.6")' don't match your environment
      Ignoring numpy: markers 'python_version == "2.6" or (python_version >= "3.2" and python_version <= "3.3")' don't match your environment
      Ignoring cython: markers 'python_version == "3.2"' don't match your environment
      Collecting setuptools
        Using cached setuptools-69.0.3-py3-none-any.whl.metadata (6.3 kB)
      Collecting wheel
        Using cached wheel-0.42.0-py3-none-any.whl.metadata (2.2 kB)
      Collecting numpy==1.23.3
        Using cached numpy-1.23.3-cp311-cp311-macosx_11_0_arm64.whl (13.3 MB)
      Collecting cython<3.0,>=0.29
        Using cached Cython-0.29.37-py2.py3-none-any.whl.metadata (3.1 kB)
      Using cached setuptools-69.0.3-py3-none-any.whl (819 kB)
      Using cached wheel-0.42.0-py3-none-any.whl (65 kB)
      Using cached Cython-0.29.37-py2.py3-none-any.whl (989 kB)
      Installing collected packages: wheel, setuptools, numpy, cython
      ERROR: Cannot set --home and --prefix together

      [notice] A new release of pip is available: 23.3.1 -> 23.3.2
      [notice] To update, run: python3.11 -m pip install --upgrade pip
      [end of output]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions