Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python和vc++都是最新的,为啥报错 #210

Open
linjialiang opened this issue Feb 16, 2024 · 2 comments
Open

python和vc++都是最新的,为啥报错 #210

linjialiang opened this issue Feb 16, 2024 · 2 comments
Labels
dependency problems related to dependency next release will be provided in next release

Comments

@linjialiang
Copy link

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
Copy link
Owner

HFrost0 commented Feb 18, 2024

danmakuC这个库没有为python3.12提前构建,在你的机器上构建的时候看上去是因为vc++版本不对导致的

error: Microsoft Visual C++ 14.0 or greater is required.

可以尝试使用python3.10

@HFrost0 HFrost0 added dependency problems related to dependency next release will be provided in next release labels Feb 18, 2024
@linjialiang
Copy link
Author

@HFrost0 我用python 3.8.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency problems related to dependency next release will be provided in next release
Projects
None yet
Development

No branches or pull requests

2 participants