Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mac python3.13. can not install #1716

Open
leogong99 opened this issue Feb 23, 2025 · 2 comments
Open

mac python3.13. can not install #1716

leogong99 opened this issue Feb 23, 2025 · 2 comments

Comments

@leogong99
Copy link

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

@seehi
Copy link
Contributor

seehi commented Feb 24, 2025

Try python3.9/3.10/3.11

@TheGreatCorrine
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants