简体   繁体   English

Mac 上的 pyreadstat 导入错误:mach-o 文件,但架构不兼容(具有“x86_64”,需要“arm64e”)

[英]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?有什么想法可以克服这个问题吗?

Unfortunately there are currently no wheels avaiable for M1 on pypy, please install with conda instead.不幸的是,目前在 pypy 上没有可用于 M1 的轮子,请改为使用 conda 安装。

The problem is being tracked here问题正在这里跟踪

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 (mach-o 文件,但架构不兼容(有'x86_64',需要'arm64e')) - (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')) mach-o 文件,但架构不兼容,有 'x86_64',需要 'arm64e' M1 MAC - mach-o file, but is an incompatible architecture have 'x86_64', need 'arm64e' M1 MAC 无法在使用 miniforge 的 M1 mac 上导入 psutil:(mach-o 文件,但架构不兼容(具有 'x86_64',需要 'arm64e')) - Unable to import psutil on M1 mac with miniforge: (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')) Python 导入获取mach-o文件,但架构不兼容(有'x86_64',需要'arm64e' M2 Mac - Python Import get mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' M2 Mac “from cplex import *”命令在 VScode 中得到一个错误,说“... mach-o 文件,但是是一个不兼容的架构(有 'x86_64',需要 'arm64e')” - "from cplex import *" command get an Error in VScode saying "... mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')" 导入错误 confluent_kafka mach-o 文件,但是是不兼容的架构(有(arm64),需要(x86_64))) - import error confluent_kafka mach-o file, but is an incompatible architecture (have (arm64), need (x86_64))) (mach-o 文件,但它是一个不兼容的架构(有 'arm64',需要 'x86_64')) - (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')) Ortools 安装错误 (x86) - mach-o 文件,但架构不兼容(有 'arm64',需要 'x86_64h') - Error in Ortools installation (x86) - mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h') arch x86_64 和 arm64e 可用但 python3 在 Mac M1 上说不兼容的架构 - arch x86_64 and arm64e is available but python3 is saying incompatible architecture on Mac M1 尝试在 Atom 中导入 numpy 时出现“不兼容的架构(有 'arm64',需要 'x86_64')”错误 - 'incompatible architecture (have 'arm64', need 'x86_64')' error when trying to import numpy in Atom
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM