Deep-Live-Cam icon indicating copy to clipboard operation
Deep-Live-Cam copied to clipboard

error pip install -r requeriments.txt

Open xzy71 opened this issue 1 year ago • 12 comments

error: subprocess-exited-with-error × pip subprocess to install backend dependencies did not run successfully. │ exit code: 2 ╰─> [80 lines of output] Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu118 Collecting torch Downloading https://download.pytorch.org/whl/cu118/torch-2.4.0%2Bcu118-cp310-cp310-win_amd64.whl (2692.5 MB) ----------------------------- 2.0/2.7 GB 2.4 MB/s eta 0:04:50 ERROR: Exception: Traceback (most recent call last): File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_vendor\urllib3\response.py", line 438, in _error_catcher yield File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_vendor\urllib3\response.py", line 561, in read data = self._fp_read(amt) if not fp_closed else b"" File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_vendor\urllib3\response.py", line 527, in _fp_read return self._fp.read(amt) if amt is not None else self._fp.read() File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_vendor\cachecontrol\filewrapper.py", line 102, in read self.__buf.write(data) File "C:\Users~~\AppData\Local\Programs\Python\Python310\lib\tempfile.py", line 483, in func_wrapper return func(*args, **kwargs) OSError: [Errno 28] No space left on device During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_internal\cli\base_command.py", line 105, in _run_wrapper status = _inner_run() File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_internal\cli\base_command.py", line 96, in _inner_run return self.run(options, args) File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_internal\cli\req_command.py", line 67, in wrapper return func(self, options, args) File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_internal\commands\install.py", line 379, in run requirement_set = resolver.resolve( File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 95, in resolve result = self._result = resolver.resolve( File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 546, in resolve state = resolution.resolve(requirements, max_rounds=max_rounds) File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 397, in resolve self._add_to_criteria(self.state.criteria, r, parent=None) File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 173, in _add_to_criteria if not criterion.candidates: File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_vendor\resolvelib\structs.py", line 156, in bool return bool(self._sequence) File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 174, in bool return any(self) File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 162, in return (c for c in iterator if id(c) not in self._incompatible_ids) File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 53, in _iter_built candidate = func() File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 186, in _make_candidate_from_link base: Optional[BaseCandidate] = self._make_base_candidate_from_link( File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 232, in _make_base_candidate_from_link self._link_candidate_cache[link] = LinkCandidate( File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 303, in init super().init( File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 158, in init self.dist = self._prepare() File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 235, in _prepare dist = self._prepare_distribution() File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 314, in _prepare_distribution return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True) File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_internal\operations\prepare.py", line 527, in prepare_linked_requirement return self._prepare_linked_requirement(req, parallel_builds) File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_internal\operations\prepare.py", line 598, in _prepare_linked_requirement local_file = unpack_url( File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_internal\operations\prepare.py", line 170, in unpack_url file = get_http_url( File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_internal\operations\prepare.py", line 111, in get_http_url from_path, content_type = download(link, temp_dir.path) File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_internal\network\download.py", line 148, in call for chunk in chunks: File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_internal\cli\progress_bars.py", line 55, in _rich_progress_bar for chunk in iterable: File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_internal\network\utils.py", line 65, in response_chunks for chunk in response.raw.stream( File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_vendor\urllib3\response.py", line 622, in stream data = self.read(amt=amt, decode_content=decode_content) File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_vendor\urllib3\response.py", line 560, in read with self._error_catcher(): File "C:\Users~~\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 153, in exit self.gen.throw(typ, value, traceback) File "C:\Users~~\AppData\Local\Programs\Python\Python310\Lib\site-packages\pip_vendor\urllib3\response.py", line 455, in _error_catcher raise ProtocolError("Connection broken: %r" % e, e) pip._vendor.urllib3.exceptions.ProtocolError: ("Connection broken: OSError(28, 'No space left on device')", OSError(28, 'No space left on device')) [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × pip subprocess to install backend dependencies did not run successfully. │ exit code: 2 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip.

xzy71 avatar Aug 10 '24 08:08 xzy71

Same issue -- frustrating when readme instructions don't work and it's a new venv setup too!

jasonkneen avatar Aug 10 '24 08:08 jasonkneen

same issue

ERROR: Could not find a version that satisfies the requirement onnxruntime-gpu==1.18.0 (from -r requirements.txt (line 17)) (from versions: 1.10.0, 1.11.0, 1.11.1, 1.12.0, 1.12.1, 1.13.1, 1.14.0, 1.14.1, 1.15.0, 1.15.1, 1.16.0, 1.16.1, 1.16.2, 1.16.3)
ERROR: No matching distribution found for onnxruntime-gpu==1.18.0 (from -r requirements.txt (line 17))

steinathan avatar Aug 10 '24 08:08 steinathan

OSError(28, 'No space left on device')

It looks like your disk is full

lbltavares avatar Aug 10 '24 08:08 lbltavares

I was having issues when I tried with python 3.11+ 3.10 worked for me (I'm using conda)

lbltavares avatar Aug 10 '24 08:08 lbltavares

I'll try, it went unnoticed in my eyes lol

xzy71 avatar Aug 10 '24 08:08 xzy71

The problem is that I use an AMD card, so I don't know how I would do this

xzy71 avatar Aug 10 '24 08:08 xzy71

it indicates I have no space left on my device though I pretty sure that I have 100gb+ free space, so you need to install dependencies manually like

pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 --index-url https://download.pytorch.org/whl/cu118

JackySu avatar Aug 10 '24 10:08 JackySu

it indicates I have no space left on my device though I pretty sure that I have 100gb+ free space, so you need to install dependencies manually like

pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 --index-url https://download.pytorch.org/whl/cu118

The problem is that I use an AMD card, so I don't know how I would do this

it indicates I have no space left on my device though I pretty sure that I have 100gb+ free space, so you need to install dependencies manually like

pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 --index-url https://download.pytorch.org/whl/cu118

comrades help me!! how do i install all manualy? cant be with only that one long line @JackySu can it?

xiaopang10 avatar Aug 10 '24 22:08 xiaopang10

same issue

ERROR: Could not find a version that satisfies the requirement onnxruntime-gpu==1.18.0 (from -r requirements.txt (line 17)) (from versions: 1.10.0, 1.11.0, 1.11.1, 1.12.0, 1.12.1, 1.13.1, 1.14.0, 1.14.1, 1.15.0, 1.15.1, 1.16.0, 1.16.1, 1.16.2, 1.16.3)
ERROR: No matching distribution found for onnxruntime-gpu==1.18.0 (from -r requirements.txt (line 17))

try

conda install onnxruntime -c conda-forge

mozillo avatar Aug 11 '24 01:08 mozillo

I was having issues. Despite being in venv default pip cache directory was on main full drive. set PIP_CACHE_DIR=D:\path\to\new\cache\dir

TheZuna avatar Aug 13 '24 15:08 TheZuna

I fixed my initial issue of it giving me a lengthy exception error by changing the venv to python 3.10 instead of 3.12 in the pyvenv.cfg, but then while running the pip install, it gave me an error saying my disk was full, which it isnt. ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device

dankashpur avatar Aug 13 '24 23:08 dankashpur

it indicates I have no space left on my device though I pretty sure that I have 100gb+ free space, so you need to install dependencies manually like

pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 --index-url https://download.pytorch.org/whl/cu118

If you initially run this, and run 'python run.py' a few times, you can do pip install [program] to whatever it says is missing

dankashpur avatar Aug 14 '24 00:08 dankashpur

building 'insightface.thirdparty.face3d.mesh.cython.mesh_core_cython' 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 insightface Failed to build insightface ERROR: Failed to build installable wheels for some pyproject.toml based projects (insightface)

ronald282-blip avatar May 28 '25 13:05 ronald282-blip