Hello everyone,
I am facing problem related to installing basicsr==1.4.2 python package within requirements.txt file. I tried to install it manually but i faced the same problem.
Also, i tried to upgrade the setuptools and pip but the problem still exists.
Any idea how to solve it?
Thanks in advance.
(.pt13) PS C:\Users\khawlahbajbaa\Downloads\ControlNet-XS-main> pip install basicsr==1.4.2
Collecting basicsr==1.4.2
Using cached basicsr-1.4.2.tar.gz (172 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [32 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\khawlahbajbaa\AppData\Local\Temp\pip-install-wdx5xxnq\basicsr_a105f4ba8e2145caa0f57d2cae4dcc80\setup.py", line 147, in <module>
setup(
File "C:\Users\khawlahbajbaa\anaconda3\envs\.pt13\lib\site-packages\setuptools\__init__.py", line 152, in setup
_install_setup_requires(attrs)
File "C:\Users\khawlahbajbaa\anaconda3\envs\.pt13\lib\site-packages\setuptools\__init__.py", line 147, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "C:\Users\khawlahbajbaa\anaconda3\envs\.pt13\lib\site-packages\setuptools\dist.py", line 806, in fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "C:\Users\khawlahbajbaa\anaconda3\envs\.pt13\lib\site-packages\pkg_resources\__init__.py", line 766, in resolve
dist = best[req.key] = env.best_match(
File "C:\Users\khawlahbajbaa\anaconda3\envs\.pt13\lib\site-packages\pkg_resources\__init__.py", line 1051, in best_match
return self.obtain(req, installer)
File "C:\Users\khawlahbajbaa\anaconda3\envs\.pt13\lib\site-packages\pkg_resources\__init__.py", line 1063, in obtain
return installer(requirement)
File "C:\Users\khawlahbajbaa\anaconda3\envs\.pt13\lib\site-packages\setuptools\dist.py", line 877, in fetch_build_egg
return fetch_build_egg(self, req)
File "C:\Users\khawlahbajbaa\anaconda3\envs\.pt13\lib\site-packages\setuptools\installer.py", line 80, in fetch_build_egg
wheel.install_as_egg(dist_location)
File "C:\Users\khawlahbajbaa\anaconda3\envs\.pt13\lib\site-packages\setuptools\wheel.py", line 95, in install_as_egg
self._install_as_egg(destination_eggdir, zf)
File "C:\Users\khawlahbajbaa\anaconda3\envs\.pt13\lib\site-packages\setuptools\wheel.py", line 103, in _install_as_egg
self._convert_metadata(zf, destination_eggdir, dist_info, egg_info)
File "C:\Users\khawlahbajbaa\anaconda3\envs\.pt13\lib\site-packages\setuptools\wheel.py", line 125, in _convert_metadata
zf.extractall(destination_eggdir)
File "C:\Users\khawlahbajbaa\anaconda3\envs\.pt13\lib\zipfile.py", line 1647, in extractall
self._extract_member(zipinfo, path, pwd)
File "C:\Users\khawlahbajbaa\anaconda3\envs\.pt13\lib\zipfile.py", line 1701, in _extract_member
open(targetpath, "wb") as target:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\khawlahbajbaa\\AppData\\Local\\Temp\\pip-install-wdx5xxnq\\basicsr_a105f4ba8e2145caa0f57d2cae4dcc80\\.eggs\\torch-2.1.0-py3.10-win-amd64.egg\\torch\\include\\ATen\\ops\\_fake_quantize_per_tensor_affine_cachemask_tensor_qparams_compositeexplicitautograd_dispatch.h'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.