MetaGPT icon indicating copy to clipboard operation
MetaGPT copied to clipboard

mac python3.13. can not install

Open leogong99 opened this issue 10 months ago • 3 comments

Bug description during install: FAILED: pandas/_libs/tslibs/base.cpython-313-darwin.so.p/meson-generated_pandas__libs_tslibs_base.pyx.c.o cc -Ipandas/_libs/tslibs/base.cpython-313-darwin.so.p -Ipandas/_libs/tslibs -I../../pandas/_libs/tslibs -I../../../../pip-build-env-g78rnw_k/overlay/lib/python3.13/site-packages/numpy/_core/include -I../../pandas/_libs/include -I/Library/Frameworks/Python.framework/Versions/3.13/include/python3.13 -fvisibility=hidden -fcolor-diagnostics -DNDEBUG -w -std=c99 -O3 -DNPY_NO_DEPRECATED_API=0 -DNPY_TARGET_VERSION=NPY_1_21_API_VERSION -MD -MQ pandas/_libs/tslibs/base.cpython-313-darwin.so.p/meson-generated_pandas__libs_tslibs_base.pyx.c.o -MF pandas/_libs/tslibs/base.cpython-313-darwin.so.p/meson-generated_pandas__libs_tslibs_base.pyx.c.o.d -o pandas/_libs/tslibs/base.cpython-313-darwin.so.p/meson-generated_pandas__libs_tslibs_base.pyx.c.o -c pandas/_libs/tslibs/base.cpython-313-darwin.so.p/pandas/_libs/tslibs/base.pyx.c pandas/_libs/tslibs/base.cpython-313-darwin.so.p/pandas/_libs/tslibs/base.pyx.c:5399:70: error: too few arguments to function call, expected 6, have 5 5397 | int ret = _PyLong_AsByteArray((PyLongObject *)v, | ~~~~~~~~~~~~~~~~~~~

Environment information Mac OS Sequoia 15.3 Python 3.13

leogong99 avatar Feb 23 '25 18:02 leogong99

Try python3.9/3.10/3.11

seehi avatar Feb 24 '25 03:02 seehi

I guess you need to use python3.9 or python3.10. This is because Python 3.12+ has compatibility issues: pkgutil.ImpImporter was removed in Python 3.12, but setuptools still depends on it, causing the numpy build to fail. metagpt requires numpy==1.24.3, which may not be fully compatible with Python 3.12.

Similarly, Python 3.13 is still new and many libraries (like pandas, numpy, and setuptools) have not fully adapted to it yet.

Besides, the weird thing is inside Pycharm, it is successfully install. (Mac OS python3.13)

TheGreatCorrine avatar Feb 24 '25 16:02 TheGreatCorrine

This issue has no activity in the past 30 days. Please comment on the issue if you have anything to add.

github-actions[bot] avatar Mar 27 '25 00:03 github-actions[bot]

This issue was closed due to 45 days of inactivity. If you feel this issue is still relevant, please reopen the issue to continue the discussion.

github-actions[bot] avatar Apr 10 '25 00:04 github-actions[bot]