python和vc++都是最新的,为啥报错
Opened this issue · 2 comments
linjialiang commented
python和vc++都是最新的,为啥报错
creating build\lib.win-amd64-cpython-312\danmakuC\protobuf\niconico
copying danmakuC\protobuf\niconico\nndcomment_pb2.py -> build\lib.win-amd64-cpython-312\danmakuC\protobuf\niconico
copying danmakuC\protobuf\niconico\__init__.py -> build\lib.win-amd64-cpython-312\danmakuC\protobuf\niconico
copying danmakuC\ass.pyi -> build\lib.win-amd64-cpython-312\danmakuC
running build_ext
building 'danmakuC.ass' 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 danmakuc
Building wheel for construct (pyproject.toml) ... done
Created wheel for construct: filename=construct-2.8.8-py2.py3-none-any.whl size=69845 sha256=4371092d4defa279c02dc888e7a98ee59f3735015d1199a8af56ddd22d46131d
Stored in directory: c:\users\administrator\appdata\local\pip\cache\wheels\a2\8e\56\88484f05befc105a8b86e3b0a2799d18a71e80ef5525c3f1b7
Successfully built construct
Failed to build danmakuc
ERROR: Could not build wheels for danmakuc, which is required to install pyproject.toml-based projects
HFrost0 commented
danmakuC这个库没有为python3.12提前构建,在你的机器上构建的时候看上去是因为vc++版本不对导致的
error: Microsoft Visual C++ 14.0 or greater is required.
可以尝试使用python3.10
linjialiang commented
@HFrost0 我用python 3.8.x