简体   繁体   中英

pyreadstat Import Error on Mac: mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')

I have Mac and get the following error after trying to compile:

ImportError: dlopen(/Users/fatihshen/Documents/magicstat_venv/lib/python3.10/site-packages/pyreadstat/pyreadstat.cpython-310-darwin.so, 0x0002): tried: '/Users/fatihshen/Documents/magicstat_venv/lib/python3.10/site-packages/pyreadstat/pyreadstat.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/pyreadstat.cpython-310-darwin.so' (no such file)

My Mac environment: MacOS Monterey Version 12.2 Apple M1 Pro

That doesn't give any error on my Windows environment.

I am using PyCharm, with the Python version 3.9.5 in a virtual environment. I run "pip install pyreadstat" command on the terminal to install this package.

My guess is that there should be a pyreadstat version specifically built for M1 chip.

Is this a bug or am I missing something? Any ideas how I can overcome this issue?

Unfortunately there are currently no wheels avaiable for M1 on pypy, please install with conda instead.

The problem is being tracked here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM