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

Failed to build installable wheels for some pyproject.toml based projects (diffq) #11

Open
Pineappleking1121 opened this issue Oct 23, 2024 · 1 comment

Comments

@Pineappleking1121
Copy link

Using the clean environment comfyui portable package, also installed the Visual Studio Build Tools, when installing the diffq package, the build failed😢
Building wheels for collected packages: diffq
Building wheel for diffq (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for diffq (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [29 lines of output]
running bdist_wheel
running build
running build_py
creating build\lib.win-amd64-cpython-311\diffq
copying diffq\base.py -> build\lib.win-amd64-cpython-311\diffq
copying diffq\diffq.py -> build\lib.win-amd64-cpython-311\diffq
copying diffq\lsq.py -> build\lib.win-amd64-cpython-311\diffq
copying diffq\torch_pack.py -> build\lib.win-amd64-cpython-311\diffq
copying diffq\ts_export.py -> build\lib.win-amd64-cpython-311\diffq
copying diffq\uniform.py -> build\lib.win-amd64-cpython-311\diffq
copying diffq\utils.py -> build\lib.win-amd64-cpython-311\diffq
copying diffq_init_.py -> build\lib.win-amd64-cpython-311\diffq
running egg_info
writing diffq.egg-info\PKG-INFO
writing dependency_links to diffq.egg-info\dependency_links.txt
writing requirements to diffq.egg-info\requires.txt
writing top-level names to diffq.egg-info\top_level.txt
reading manifest file 'diffq.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching 'examples\cifar\outputs**'
adding license file 'LICENSE'
writing manifest file 'diffq.egg-info\SOURCES.txt'
running build_ext
building 'diffq.bitpack' extension
creating build\temp.win-amd64-cpython-311\Release
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IE:\comfyui\ComfyUI02\ComfyUI_windows_portable\python_embeded\include -IE:\comfyui\ComfyUI02\ComfyUI_windows_portable\python_embeded\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\cppwinrt" /Tcbitpack.c /Fobuild\temp.win-amd64-cpython-311\Release\bitpack.obj
bitpack.c
bitpack.c(29): fatal error C1083: 无法打开包括文件: “Python.h”: No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for diffq
Failed to build diffq
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (diffq)

@smthemex
Copy link
Owner

我的readme 里写了,可能会遇到这样的情况,通常是你的这个python环境没有配置进win10 或win11的系统变量,找到环境所用的python安装目录,把XXX/python,和XXX/python/Scripts 加入到系统环境变量的path里(百度或Google一下怎么加),如果是便携包,readme里的说明就是用于便携包的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants