Arkueid / live2d-py

Live2D for Python (C++ Wrapper): Supports model loading, lip-sync and basic face rigging.
https://arkueid.github.io/live2d-py-docs/
MIT License
41 stars 8 forks source link

Cannot compile and use #6

Open Hujiazeng opened 2 months ago

Hujiazeng commented 2 months ago

subprocess.CalledProcessError: Command '['cmake', 'G:\ALLTOOLS\live2d-py-main', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=G:\ALLTOOLS\live2d-py-main\build\lib.win-amd64-cpython-310', '-DPYTHON_EXECUTABLE=G:\ALLTOOLS\Anaconda3\envs\live2d\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_Release=G:\ALLTOOLS\live2d-py-main\build\lib.win-amd64-cpython-310', '-A', 'x64', '-DPYTHON_INSTALLATION_PATH=G:\ALLTOOLS\Anaconda3\envs\live2d']' returned non-zero exit status 1. error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. full command: 'G:\ALLTOOLS\Anaconda3\envs\live2d\python.exe' -u -c ' exec(compile('"'"''"'"''"'"'

This is -- a caller that pip uses to run setup.py

#

- It imports setuptools before invoking setup.py, to enable projects that directly

import from distutils.core to work with newer packaging standards.

- It provides a clear error message when setuptools is not installed.

- It sets sys.argv[0] to the underlying setup.py, when invoking setup.py so

setuptools doesn'"'"'t think the script is -c. This avoids the following warning:

manifest_maker: standard file '"'"'-c'"'"' not found".

- It generates a shim setup.py, for handling setup.cfg-only projects.

import os, sys, tokenize

try: import setuptools except ImportError as error: print( "ERROR: Can not execute setup.py since setuptools is not available in " "the build environment.", file=sys.stderr, ) sys.exit(1)

file = %r sys.argv[0] = file

if os.path.exists(file): filename = file with tokenize.open(file) as f: setup_py_code = f.read() else: filename = "" setup_py_code = "from setuptools import setup; setup()"

exec(compile(setup_py_code, filename, "exec")) '"'"''"'"''"'"' % ('"'"'G:\ALLTOOLS\live2d-py-main\setup.py'"'"',), "", "exec"))' bdist_wheel -d 'C:\Users\Administrator\AppData\Local\Temp\pip-wheel-spja4grh' cwd: G:\ALLTOOLS\live2d-py-main\ Building wheel for live2d-py (setup.py) ... error ERROR: Failed building wheel for live2d-py Running setup.py clean for live2d-py Running command python setup.py clean running clean removing 'build\temp.win-amd64-cpython-310' (and everything under it) removing 'build\lib.win-amd64-cpython-310' (and everything under it) 'build\bdist.win-amd64' does not exist -- can't clean it 'build\scripts-3.10' does not exist -- can't clean it removing 'build' Failed to build live2d-py ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (live2d-py)

Arkueid commented 2 months ago

除了这些还有其他的报错信息吗。