OF-Scraper
OF-Scraper copied to clipboard
Error when installing - Failed to build `xxhash==3.4.1`
Hello,
I installed UV first and now get this error when I try to install ofscraper:
x Failed to build xxhash==3.4.1
|-> The build backend returned an error
-> Call to setuptools.build_meta:legacy.build_wheel` failed (exit code: 1)
[stdout]
running bdist_wheel
running build
running build_py
copying xxhash\version.py -> build\lib.win-amd64-cpython-314\xxhash
copying xxhash\__init__.py -> build\lib.win-amd64-cpython-314\xxhash
copying xxhash\__init__.pyi -> build\lib.win-amd64-cpython-314\xxhash
copying xxhash\py.typed -> build\lib.win-amd64-cpython-314\xxhash
running build_ext
building '_xxhash' extension
[stderr]
<string>:29: DeprecationWarning: codecs.open() is deprecated. Use open() instead.
C:\Users\User\AppData\Local\uv\cache\builds-v0\.tmphQivyv\Lib\site-packages\setuptools\dist.py:759:
SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: BSD License
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
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/
hint: This usually indicates a problem with the package or the build environment.
help: xxhash (v3.4.1) was included because ofscraper (v3.13.9) depends on xxhash
Strangely I also have Microsoft Visual C++ 14 installed and it gives me that error.
And ideas?
That version can't figure out how to compile the xxhash "wheel". Install it another way or change your Python version.