I've read the post in the forum, but I still met an error:
cpuset -l 0 pip install pandas
Defaulting to user installation because normal site-packages is not writeable
Collecting pandas
Using cached pandas-2.2.2.tar.gz (4.4 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [31 lines of output]
+ meson setup /tmp/pip-install-mjhbm6l9/pandas_08e24a2f839249178dd7fa5dffe20a9c /tmp/pip-install-mjhbm6l9/pandas_08e24a2f839249178dd7fa5dffe20a9c/.mesonpy-yet48s74/build -Dbuildt
ype=release -Db_ndebug=if-release -Db_vscrt=md --vsenv --native-file=/tmp/pip-install-mjhbm6l9/pandas_08e24a2f839249178dd7fa5dffe20a9c/.mesonpy-yet48s74/build/meson-python-native-file.
ini
The Meson build system
Version: 1.2.1
Source dir: /tmp/pip-install-mjhbm6l9/pandas_08e24a2f839249178dd7fa5dffe20a9c
Build dir: /tmp/pip-install-mjhbm6l9/pandas_08e24a2f839249178dd7fa5dffe20a9c/.mesonpy-yet48s74/build
Build type: native build
Project name: pandas
Project version: 2.2.2
C compiler for the host machine: cc (clang 18.1.5 "FreeBSD clang version 18.1.5 (https://github.com/llvm/llvm-project.git llvmorg-18.1.5-0-g617a15a9eac9)")
C linker for the host machine: cc ld.lld 18.1.5
C++ compiler for the host machine: c++ (clang 18.1.5 "FreeBSD clang version 18.1.5 (https://github.com/llvm/llvm-project.git llvmorg-18.1.5-0-g617a15a9eac9)")
C++ linker for the host machine: c++ ld.lld 18.1.5
Cython compiler for the host machine: cython (cython 3.0.5)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python found: YES (/usr/local/bin/python3.11)
../../pandas/meson.build:1:15: ERROR: Command `/usr/local/bin/python3.11 -c '
import os
import numpy as np
try:
# Check if include directory is inside the pandas dir
# e.g. a venv created inside the pandas dir
# If so, convert it to a relative path
incdir = os.path.relpath(np.get_include())
except Exception:
incdir = np.get_include()
print(incdir)
'` failed with status 1.
A full log can be found at /tmp/pip-install-mjhbm6l9/pandas_08e24a2f839249178dd7fa5dffe20a9c/.mesonpy-yet48s74/build/meson-logs/meson-log.txt
[end of output]
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.