zsa00900 发表于 2022-10-7 18:44

pip环境部署一直报错怎么解决啊

最近不是ai作画很火嘛,就想搞个玩玩
盯上了stable diffusion
然后部署环境的时候一直报错,错误代码如下,虽然部署用的是conda但是看了错误代码感觉的pip的问题
想问一下怎么解决(站内看到有类似的问题说是关daili但是我确实是关着的啊)
Installing pip dependencies: | Ran pip subprocess with arguments:
['D:\\Ai\\conda\\envs\\ldm\\python.exe', '-m', 'pip', 'install', '-U', '-r', 'D:\\Ai\\stable-diffusion\\condaenv.g4qmujy5.requirements.txt']
Pip subprocess output:
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Obtaining taming-transformers from git+https://github.com/CompVis/taming-transformers.git@master#egg=taming-transformers (from -r D:\Ai\stable-diffusion\condaenv.g4qmujy5.requirements.txt (line 17))

Pip subprocess error:
ERROR: Exception:
Traceback (most recent call last):
File "D:\Ai\conda\envs\ldm\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 171, in _merge_into_criterion
    crit = self.state.criteria
KeyError: 'taming-transformers'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Ai\conda\envs\ldm\lib\site-packages\pip\_internal\vcs\git.py", line 322, in get_remote_url
    found_remote = remotes
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Ai\conda\envs\ldm\lib\site-packages\pip\_internal\cli\base_command.py", line 224, in _main
    status = self.run(options, args)
File "D:\Ai\conda\envs\ldm\lib\site-packages\pip\_internal\cli\req_command.py", line 180, in wrapper
    return func(self, options, args)
File "D:\Ai\conda\envs\ldm\lib\site-packages\pip\_internal\commands\install.py", line 320, in run
    requirement_set = resolver.resolve(
File "D:\Ai\conda\envs\ldm\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 121, in resolve
    self._result = resolver.resolve(
File "D:\Ai\conda\envs\ldm\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 445, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
File "D:\Ai\conda\envs\ldm\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 310, in resolve
    name, crit = self._merge_into_criterion(r, parent=None)
File "D:\Ai\conda\envs\ldm\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 173, in _merge_into_criterion
    crit = Criterion.from_requirement(self._p, requirement, parent)
File "D:\Ai\conda\envs\ldm\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 79, in from_requirement
    cands = build_iter_view(provider.find_matches())
File "D:\Ai\conda\envs\ldm\lib\site-packages\pip\_vendor\resolvelib\structs.py", line 148, in build_iter_view
    matches = list(matches)
File "D:\Ai\conda\envs\ldm\lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 255, in <genexpr>
    if constraint.is_satisfied_by(c)
File "D:\Ai\conda\envs\ldm\lib\site-packages\pip\_internal\resolution\resolvelib\base.py", line 66, in is_satisfied_by
    return self.specifier.contains(candidate.version, prereleases=True)
File "D:\Ai\conda\envs\ldm\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 194, in version
    self._version = self.dist.parsed_version
File "D:\Ai\conda\envs\ldm\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 239, in dist
    self._prepare()
File "D:\Ai\conda\envs\ldm\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 226, in _prepare
    dist = self._prepare_distribution()
File "D:\Ai\conda\envs\ldm\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 346, in _prepare_distribution
    return self._factory.preparer.prepare_editable_requirement(self._ireq)
File "D:\Ai\conda\envs\ldm\lib\site-packages\pip\_internal\operations\prepare.py", line 573, in prepare_editable_requirement
    req.update_editable(self.download_dir is None)
File "D:\Ai\conda\envs\ldm\lib\site-packages\pip\_internal\req\req_install.py", line 655, in update_editable
    vcs_backend.obtain(self.source_dir, url=hidden_url)
File "D:\Ai\conda\envs\ldm\lib\site-packages\pip\_internal\vcs\versioncontrol.py", line 654, in obtain
    existing_url = self.get_remote_url(dest)
File "D:\Ai\conda\envs\ldm\lib\site-packages\pip\_internal\vcs\git.py", line 324, in get_remote_url
    raise RemoteNotFoundError
pip._internal.vcs.versioncontrol.RemoteNotFoundError

failed

CondaEnvException: Pip failed

花开亦相惜_123 发表于 2022-10-7 19:10

看着像是版本不匹配

zsa00900 发表于 2022-10-7 19:15

花开亦相惜_123 发表于 2022-10-7 19:10
看着像是版本不匹配

是我要把版本往回退吗
退的话退哪个啊
页: [1]
查看完整版本: pip环境部署一直报错怎么解决啊