Skip to content

BUILD: Installation issue on Mac with M1 Pro arm64 processor. pandas_parser.cpython-311-darwin.so is using x86_64 arch #61566

Open
@Leviann

Description

@Leviann

Installation check

Platform

macOS-15.5-arm64-arm-64bit

Installation Method

Built from source

pandas Version

pandas-3.0.0.dev0+2147.g1f6f42ac55

Python Version

3.11.13

Installation Logs

I can't use pandas installed either using pip or from source, on my macbook with M1 Pro arm64 processor.
I am not using rosetta in terminal and my python install is also amd64.

Please help. It looks like one library file is built with x86-x64 arch.

import pandas as pd

../../Library/Python/3.11/lib/python/site-packages/pandas/init.py:45: in
from pandas.core.api import (
../../Library/Python/3.11/lib/python/site-packages/pandas/core/api.py:1: in
from pandas._libs import (
../../Library/Python/3.11/lib/python/site-packages/pandas/_libs/init.py:16: in
import pandas._libs.pandas_parser # isort: skip # type: ignore[reportUnusedImport]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E ImportError: dlopen(/Users/leviann/Library/Python/3.11/lib/python/site-packages/pandas/_libs/pandas_parser.cpython-311-darwin.so, 0x0002): tried: '/Users/leviann/Library/Python/3.11/lib/python/site-packages/pandas/_libs/pandas_parser.cpython-311-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/leviann/Library/Python/3.11/lib/python/site-packages/pandas/_libs/pandas_parser.cpython-311-darwin.so' (no such file), '/Users/leviann/Library/Python/3.11/lib/python/site-packages/pandas/_libs/pandas_parser.cpython-311-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64'))

Metadata

Metadata

Assignees

No one assigned

    Labels

    BuildLibrary building on various platformsNeeds TriageIssue that has not been reviewed by a pandas team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions