Always installed failed, please help me, thank you!
Collecting matplotlib==3.8.0
Downloading matplotlib-3.8.0.tar.gz (35.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 35.9/35.9 MB 36.6 MB/s eta 0:00:00
Installing build dependencies: still running...
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting contourpy>=1.0.1 (from matplotlib==3.8.0)
Downloading contourpy-1.2.1.tar.gz (13.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.5/13.5 MB 83.8 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [59 lines of output]
+ meson setup /tmp/pip-install-vq2swbhx/contourpy_dd2c72e3a0a64d2aa2729083bed0aae7 /tmp/pip-install-vq2swbhx/contourpy_dd2c72e3a0a64d2aa2729083bed0aae7/.mesonpy-h6mc1xfa -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --vsenv --native-file=/tmp/pip-install-vq2swbhx/contourpy_dd2c72e3a0a64d2aa2729083bed0aae7/.mesonpy-h6mc1xfa/meson-python-native-file.ini
The Meson build system
Version: 1.5.0
Source dir: /tmp/pip-install-vq2swbhx/contourpy_dd2c72e3a0a64d2aa2729083bed0aae7
Build dir: /tmp/pip-install-vq2swbhx/contourpy_dd2c72e3a0a64d2aa2729083bed0aae7/.mesonpy-h6mc1xfa
Build type: native build
Project name: contourpy
Project version: 1.2.1
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
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python found: YES (/usr/home/name/.virtualenvs/myenv/bin/python)
Found pkg-config: YES (/usr/local/bin/pkg-config) 2.2.0
Run-time dependency pybind11 found: YES 2.12.0
Configuring _build_config.py using configuration
Run-time dependency python found: YES 3.11
Build targets in project: 1
contourpy 1.2.1
Build config
host_cpu : x86_64
build_cpu : x86_64
cross_build : false
optimization: 3
User defined options
Native files: /tmp/pip-install-vq2swbhx/contourpy_dd2c72e3a0a64d2aa2729083bed0aae7/.mesonpy-h6mc1xfa/meson-python-native-file.ini
buildtype : release
vsenv : true
b_ndebug : if-release
b_vscrt : md
Found ninja-1.11.1 at /usr/local/bin/ninja
Visual Studio environment is needed to run Ninja. It is recommended to use Meson wrapper:
/tmp/pip-build-env- :tsv3a06j/overlay/bin/meson compile -C .
+ /usr/local/bin/ninja -v
[1/14] c++ -Isrc/_contourpy.cpython-311.so.p -Isrc -I../src -I/include -I/usr/local/include/python3.11 -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++17 -O3 -fPIC -DCONTOURPY_VERSION=1.2.1 -MD -MQ src/_contourpy.cpython-311.so.p/converter.cpp.o -MF src/_contourpy.cpython-311.so.p/converter.cpp.o.d -o src/_contourpy.cpython-311.so.p/converter.cpp.o -c ../src/converter.cpp
FAILED: src/_contourpy.cpython-311.so.p/converter.cpp.o
c++ -Isrc/_contourpy.cpython-311.so.p -Isrc -I../src -I/include -I/usr/local/include/python3.11 -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++17 -O3 -fPIC -DCONTOURPY_VERSION=1.2.1 -MD -MQ src/_contourpy.cpython-311.so.p/converter.cpp.o -MF src/_contourpy.cpython-311.so.p/converter.cpp.o.d -o src/_contourpy.cpython-311.so.p/converter.cpp.o -c ../src/converter.cpp
In file included from ../src/converter.cpp:1:
In file included from ../src/converter.h:4:
../src/common.h:4:10: fatal error: 'pybind11/pybind11.h' file not found
4 | #include <pybind11/pybind11.h>
| ^~~~~~~~~~~~~~~~~~~~~
1 error generated.
[2/14] c++ -Isrc/_contourpy.cpython-311.so.p -Isrc -I../src -I/include -I/usr/local/include/python3.11 -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++17 -O3 -fPIC -DCONTOURPY_VERSION=1.2.1 -MD -MQ src/_contourpy.cpython-311.so.p/chunk_local.cpp.o -MF src/_contourpy.cpython-311.so.p/chunk_local.cpp.o.d -o src/_contourpy.cpython-311.so.p/chunk_local.cpp.o -c ../src/chunk_local.cpp
FAILED: src/_contourpy.cpython-311.so.p/chunk_local.cpp.o
c++ -Isrc/_contourpy.cpython-311.so.p -Isrc -I../src -I/include -I/usr/local/include/python3.11 -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++17 -O3 -fPIC -DCONTOURPY_VERSION=1.2.1 -MD -MQ src/_contourpy.cpython-311.so.p/chunk_local.cpp.o -MF src/_contourpy.cpython-311.so.p/chunk_local.cpp.o.d -o src/_contourpy.cpython-311.so.p/chunk_local.cpp.o -c ../src/chunk_local.cpp
In file included from ../src/chunk_local.cpp:1:
In file included from ../src/chunk_local.h:4:
In file included from ../src/output_array.h:4:
../src/common.h:4:10: fatal error: 'pybind11/pybind11.h' file not found
4 | #include <pybind11/pybind11.h>
| ^~~~~~~~~~~~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
[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.