subprocess-exited-with-error: A subprocess (a separate program run within the main program) encountered an error and exited prematurely.
Getting requirements to build wheel did not run successfully: An error occurred while gathering requirements to build a Python wheel (a package format).
exit code 1: Indicates a general error during execution.
Key Information:
The error originates from a subprocess, suggesting it's not directly related to pip (the package installer).
A specific file was not found, leading to the failure.
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [31 lines of output]
Traceback (most recent call last):
File "C:\Users\emili\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Users\emili\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\emili\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\emili\AppData\Local\Temp\pip-build-env-zjq36zui\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\emili\AppData\Local\Temp\pip-build-env-zjq36zui\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "C:\Users\emili\AppData\Local\Temp\pip-build-env-zjq36zui\overlay\Lib\site-packages\setuptools\build_meta.py", line 480, in run_setup
super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
File "C:\Users\emili\AppData\Local\Temp\pip-build-env-zjq36zui\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
exec(code, locals())
File "", line 126, in
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.496.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 408, in check_call
retcode = call(*popenargs, *kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.496.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 389, in call
with Popen(popenargs, kwargs) as p:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.496.0_x64qbz5n2kfra8p0\Lib\subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.496.0_x64qbz5n2kfra8p0\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build 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.
PS C:\Users\emili\Downloads>
Error:
subprocess-exited-with-error: A subprocess (a separate program run within the main program) encountered an error and exited prematurely. Getting requirements to build wheel did not run successfully: An error occurred while gathering requirements to build a Python wheel (a package format). exit code 1: Indicates a general error during execution. Key Information:
The error originates from a subprocess, suggesting it's not directly related to pip (the package installer). A specific file was not found, leading to the failure.
PS C:\Users\emili\Downloads> pip install imagen-pytorch Defaulting to user installation because normal site-packages is not writeable Collecting imagen-pytorch Downloading imagen_pytorch-1.25.12-py3-none-any.whl.metadata (1.2 kB) Collecting accelerate>=0.23.0 (from imagen-pytorch) Downloading accelerate-0.25.0-py3-none-any.whl.metadata (18 kB) Collecting beartype (from imagen-pytorch) Downloading beartype-0.16.4-py3-none-any.whl.metadata (29 kB) Collecting click (from imagen-pytorch) Downloading click-8.1.7-py3-none-any.whl.metadata (3.0 kB) Collecting datasets (from imagen-pytorch) Downloading datasets-2.16.0-py3-none-any.whl.metadata (20 kB) Collecting einops>=0.7.0 (from imagen-pytorch) Downloading einops-0.7.0-py3-none-any.whl.metadata (13 kB) Collecting ema-pytorch>=0.0.3 (from imagen-pytorch) Downloading ema_pytorch-0.3.1-py3-none-any.whl.metadata (715 bytes) Requirement already satisfied: fsspec in c:\users\emili\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local-packages\python312\site-packages (from imagen-pytorch) (2023.4.0) Collecting kornia (from imagen-pytorch) Downloading kornia-0.7.0-py2.py3-none-any.whl.metadata (12 kB) Requirement already satisfied: numpy in c:\users\emili\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local-packages\python312\site-packages (from imagen-pytorch) (1.26.2) Collecting packaging (from imagen-pytorch) Downloading packaging-23.2-py3-none-any.whl.metadata (3.2 kB) Requirement already satisfied: pillow in c:\users\emili\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local-packages\python312\site-packages (from imagen-pytorch) (10.1.0) Collecting pydantic>=2 (from imagen-pytorch) Downloading pydantic-2.5.3-py3-none-any.whl.metadata (65 kB) ---------------------------------------- 65.6/65.6 kB 3.7 MB/s eta 0:00:00 Collecting pytorch-warmup (from imagen-pytorch) Downloading pytorch_warmup-0.1.1-py3-none-any.whl (6.6 kB) Collecting sentencepiece (from imagen-pytorch) Downloading sentencepiece-0.1.99.tar.gz (2.6 MB) ---------------------------------------- 2.6/2.6 MB 4.0 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [31 lines of output] Traceback (most recent call last): File "C:\Users\emili\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Users\emili\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\emili\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\emili\AppData\Local\Temp\pip-build-env-zjq36zui\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\emili\AppData\Local\Temp\pip-build-env-zjq36zui\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "C:\Users\emili\AppData\Local\Temp\pip-build-env-zjq36zui\overlay\Lib\site-packages\setuptools\build_meta.py", line 480, in run_setup
super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
File "C:\Users\emili\AppData\Local\Temp\pip-build-env-zjq36zui\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
exec(code, locals())
File "", line 126, in
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.496.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 408, in check_call
retcode = call(*popenargs, *kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.496.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 389, in call
with Popen(popenargs, kwargs) as p:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.496.0_x64qbz5n2kfra8p0\Lib\subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.496.0_x64qbz5n2kfra8p0\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× Getting requirements to build 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. PS C:\Users\emili\Downloads>