吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 1190|回复: 2
收起左侧

[求助] pip环境部署一直报错怎么解决啊

[复制链接]
zsa00900 发表于 2022-10-7 18:44
最近不是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[name]
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[0]
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([requirement]))
  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
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-11-25 06:37

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表