-
Notifications
You must be signed in to change notification settings - Fork 20
Description
大佬们在安装依赖的时候出现了安装失败的问题,cmd要求我安装Microsoft Visual C++ Build Tools,但是我进入微软官网之后并不知道如何安装这个工具,有佬能教教吗,下面是报错内容,主要看最后几行就行了。
Building wheels for collected packages: lzfse
Building wheel for lzfse (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for lzfse (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [90 lines of output]
C:\Users\zht\AppData\Local\Temp\pip-build-env-objvc6o9\overlay\Lib\site-packages\setuptools\config_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: project.license as a TOML table is deprecated
!!
********************************************************************************
Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).
By 2026-Feb-18, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
corresp(dist, value, root_dir)
running bdist_wheel
running build
running build_py
running egg_info
writing lzfse.egg-info\PKG-INFO
writing dependency_links to lzfse.egg-info\dependency_links.txt
writing top-level names to lzfse.egg-info\top_level.txt
reading manifest file 'lzfse.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching '.gitignore'
warning: no previously-included files found matching '.gitmodules'
warning: no previously-included files found matching '*.pyc'
adding license file 'LICENSE.lzfse'
adding license file 'COPYING'
adding license file 'AUTHORS'
writing manifest file 'lzfse.egg-info\SOURCES.txt'
C:\Users\zht\AppData\Local\Temp\pip-build-env-objvc6o9\overlay\Lib\site-packages\setuptools\command\build_py.py:212: _Warning: Package 'lzfse.src' is absent from the `packages` configuration.
!!
********************************************************************************
############################
# Package would be ignored #
############################
Python recognizes 'lzfse.src' as an importable package[^1],
but it is absent from setuptools' `packages` configuration.
This leads to an ambiguous overall configuration. If you want to distribute this
package, please make sure that 'lzfse.src' is explicitly added
to the `packages` configuration field.
Alternatively, you can also rely on setuptools' discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" on setuptools documentation page:
- https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
If you don't want 'lzfse.src' to be distributed and are
already explicitly excluding 'lzfse.src' via
`find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
you can try to use `exclude_package_data`, or `include-package-data=False` in
combination with a more fine grained `package-data` configuration.
You can read more about "package data files" on setuptools documentation page:
- https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[^1]: For Python, any directory (with suitable naming) can be imported,
even if it does not contain any `.py` files.
On the other hand, currently there is no concept of package data
directory, all directories are treated like packages.
********************************************************************************
!!
check.warn(importable)
creating build\lib.win-amd64-cpython-313\lzfse\src
copying lzfse\src\lzfse.h -> build\lib.win-amd64-cpython-313\lzfse\src
copying lzfse\src\lzfse_decode.c -> build\lib.win-amd64-cpython-313\lzfse\src
copying lzfse\src\lzfse_decode_base.c -> build\lib.win-amd64-cpython-313\lzfse\src
copying lzfse\src\lzfse_encode.c -> build\lib.win-amd64-cpython-313\lzfse\src
copying lzfse\src\lzfse_encode_base.c -> build\lib.win-amd64-cpython-313\lzfse\src
copying lzfse\src\lzfse_encode_tables.h -> build\lib.win-amd64-cpython-313\lzfse\src
copying lzfse\src\lzfse_fse.c -> build\lib.win-amd64-cpython-313\lzfse\src
copying lzfse\src\lzfse_fse.h -> build\lib.win-amd64-cpython-313\lzfse\src
copying lzfse\src\lzfse_internal.h -> build\lib.win-amd64-cpython-313\lzfse\src
copying lzfse\src\lzfse_main.c -> build\lib.win-amd64-cpython-313\lzfse\src
copying lzfse\src\lzfse_tunables.h -> build\lib.win-amd64-cpython-313\lzfse\src
copying lzfse\src\lzvn_decode_base.c -> build\lib.win-amd64-cpython-313\lzfse\src
copying lzfse\src\lzvn_decode_base.h -> build\lib.win-amd64-cpython-313\lzfse\src
copying lzfse\src\lzvn_encode_base.c -> build\lib.win-amd64-cpython-313\lzfse\src
copying lzfse\src\lzvn_encode_base.h -> build\lib.win-amd64-cpython-313\lzfse\src
running build_ext
building 'lzfse' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for lzfse
Failed to build lzfse
error: failed-wheel-build-for-install
× Failed to build installable wheels for some pyproject.toml based projects
╰─> lzfse