为什么我安装fastdtw出现下面的报错
pip install fastdtw
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting fastdtw
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/99/43/30f2d8db076f216b15c10db663b46e22d1750b1ebacd7af6e62b83d6ab98/fastdtw-0.3.4.tar.gz (133 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in /Users/yin/anaconda3/envs/sound_processing/lib/python3.10/site-packages (from fastdtw) (1.26.4)
Building wheels for collected packages: fastdtw
Building wheel for fastdtw (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [99 lines of output]
Intel MKL WARNING: Support of Intel(R) Streaming SIMD Extensions 4.2 (Intel(R) SSE4.2) enabled only processors has been deprecated. Intel oneAPI Math Kernel Library 2025.0 will require Intel(R) Advanced Vector Extensions (Intel(R) AVX) instructions.
Intel MKL WARNING: Support of Intel(R) Streaming SIMD Extensions 4.2 (Intel(R) SSE4.2) enabled only processors has been deprecated. Intel oneAPI Math Kernel Library 2025.0 will require Intel(R) Advanced Vector Extensions (Intel(R) AVX) instructions.
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-cpython-310
creating build/lib.macosx-10.9-x86_64-cpython-310/fastdtw
copying fastdtw/fastdtw.py -> build/lib.macosx-10.9-x86_64-cpython-310/fastdtw
copying fastdtw/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-310/fastdtw
running build_ext
building 'fastdtw._fastdtw' extension
creating build/temp.macosx-10.9-x86_64-cpython-310
creating build/temp.macosx-10.9-x86_64-cpython-310/fastdtw
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/yin/anaconda3/envs/sound_processing/include -fPIC -O2 -isystem /Users/yin/anaconda3/envs/sound_processing/include -I/Users/yin/anaconda3/envs/sound_processing/lib/python3.10/site-packages/numpy/core/include -I/Users/yin/anaconda3/envs/sound_processing/include/python3.10 -c fastdtw/_fastdtw.cpp -o build/temp.macosx-10.9-x86_64-cpython-310/fastdtw/_fastdtw.o
fastdtw/_fastdtw.cpp:29437:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
CYTHON_FALLTHROUGH;
^
fastdtw/_fastdtw.cpp:566:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
#define CYTHON_FALLTHROUGH __attribute__((fallthrough))
^
fastdtw/_fastdtw.cpp:29448:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
CYTHON_FALLTHROUGH;
^
fastdtw/_fastdtw.cpp:566:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
#define CYTHON_FALLTHROUGH __attribute__((fallthrough))
^
fastdtw/_fastdtw.cpp:29547:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
CYTHON_FALLTHROUGH;
^
fastdtw/_fastdtw.cpp:566:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
#define CYTHON_FALLTHROUGH __attribute__((fallthrough))
^
fastdtw/_fastdtw.cpp:29553:21: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
CYTHON_FALLTHROUGH;
^
fastdtw/_fastdtw.cpp:566:34: note: expanded from macro 'CYTHON_FALLTHROUGH'
#define CYTHON_FALLTHROUGH __attribute__((fallthrough))
^
4 warnings generated.
clang++ -bundle -undefined dynamic_lookup -Wl,-rpath,/Users/yin/anaconda3/envs/sound_processing/lib -L/Users/yin/anaconda3/envs/sound_processing/lib -Wl,-rpath,/Users/yin/anaconda3/envs/sound_processing/lib -L/Users/yin/anaconda3/envs/sound_processing/lib build/temp.macosx-10.9-x86_64-cpython-310/fastdtw/_fastdtw.o -lstdc++ -o build/lib.macosx-10.9-x86_64-cpython-310/fastdtw/_fastdtw.cpython-310-darwin.so
ld: warning: duplicate -rpath '/Users/yin/anaconda3/envs/sound_processing/lib' ignored
ld: warning: ignoring duplicate libraries: '-lc++'
/Users/yin/anaconda3/envs/sound_processing/lib/python3.10/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
installing to build/bdist.macosx-10.9-x86_64/wheel
running install
running install_lib
creating build/bdist.macosx-10.9-x86_64
creating build/bdist.macosx-10.9-x86_64/wheel
creating build/bdist.macosx-10.9-x86_64/wheel/fastdtw
copying build/lib.macosx-10.9-x86_64-cpython-310/fastdtw/fastdtw.py -> build/bdist.macosx-10.9-x86_64/wheel/fastdtw
copying build/lib.macosx-10.9-x86_64-cpython-310/fastdtw/__init__.py -> build/bdist.macosx-10.9-x86_64/wheel/fastdtw
copying build/lib.macosx-10.9-x86_64-cpython-310/fastdtw/_fastdtw.cpython-310-darwin.so -> build/bdist.macosx-10.9-x86_64/wheel/fastdtw
running install_egg_info
running egg_info
writing fastdtw.egg-info/PKG-INFO
writing dependency_links to fastdtw.egg-info/dependency_links.txt
writing requirements to fastdtw.egg-info/requires.txt
writing top-level names to fastdtw.egg-info/top_level.txt
dependency /Users/yin/anaconda3/envs/sound_processing/lib/python3.10/site-packages/numpy/core/include/numpy/npy_math.h won't be automatically included in the manifest: the path must be relative
reading manifest file 'fastdtw.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'fastdtw.egg-info/SOURCES.txt'
Copying fastdtw.egg-info to build/bdist.macosx-10.9-x86_64/wheel/fastdtw-0.3.4-py3.10.egg-info
running install_scripts
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/n2/v5395f9j6jd1m_w8tl_42vww0000gn/T/pip-install-w1l17lbq/fastdtw_f700adb9c0844fb68982dc45b1fb9e90/setup.py", line 81, in <module>
setup(**kwargs)
File "/Users/yin/anaconda3/envs/sound_processing/lib/python3.10/site-packages/setuptools/__init__.py", line 103, in setup
return distutils.core.setup(**attrs)
File "/Users/yin/anaconda3/envs/sound_processing/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/Users/yin/anaconda3/envs/sound_processing/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/Users/yin/anaconda3/envs/sound_processing/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/Users/yin/anaconda3/envs/sound_processing/lib/python3.10/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/Users/yin/anaconda3/envs/sound_processing/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/Users/yin/anaconda3/envs/sound_processing/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 328, in run
impl_tag, abi_tag, plat_tag = self.get_tag()
File "/Users/yin/anaconda3/envs/sound_processing/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 278, in get_tag
assert tag in supported_tags, "would build wheel with unsupported tag {}".format(tag)
AssertionError: would build wheel with unsupported tag ('cp310', 'cp310', 'macosx_10_9_x86_64')
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for fastdtw
Running setup.py clean for fastdtw
Failed to build fastdtw
ERROR: Could not build wheels for fastdtw, which is required to install pyproject.toml-based projects