安装不了
pip install geatpy 报错了
Collecting geatpy Using cached geatpy-2.4.0.tar.gz (60.0 MB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [9 lines of output]
Traceback (most recent call last):
File "
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.
python 版本是3.12,我看了release里面的,好像没有提供macos系统的cp312的.whl
python降级为3.10后安装成功了,但是不兼容架构
ImportError Traceback (most recent call last)
/var/folders/9b/bsy0zccs53342bvycfcbd0600000gn/T/ipykernel_18834/3925503107.py in
/opt/anaconda3/lib/python3.10/site-packages/geatpy/init.py in
ImportError: dlopen(/opt/anaconda3/lib/python3.10/site-packages/geatpy/core/awGA.cpython-310-darwin.so, 0x0002): tried: '/opt/anaconda3/lib/python3.10/site-packages/geatpy/core/awGA.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))