[英]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:我有 Mac 并在尝试编译后收到以下错误:
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我的 Mac 环境:MacOS Monterey 版本 12.2 Apple M1 Pro
That doesn't give any error on my Windows environment.这不会在我的 Windows 环境中出现任何错误。
I am using PyCharm, with the Python version 3.9.5 in a virtual environment.我在虚拟环境中使用 PyCharm,Python 版本为 3.9.5。 I run "pip install pyreadstat" command on the terminal to install this package.我在终端上运行“pip install pyreadstat”命令来安装这个包。
My guess is that there should be a pyreadstat version specifically built for M1 chip.我的猜测是应该有专门为 M1 芯片构建的 pyreadstat 版本。
Is this a bug or am I missing something?这是一个错误还是我错过了什么? Any ideas how I can overcome this issue?有什么想法可以克服这个问题吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.