请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

No matching distribution found for xformers==0.0.21

安装提供的 lora-scripts-v1.8.1 执行 install-cn 发生错误

过程如下

(lora_model_training) PS D:\Lora_Model_Training\lora-scripts-v1.8.1> install-cn
正在创建虚拟环境…
安装程序所需依赖 (已进行国内加速,若在国外或无法使用加速源请换用 install.ps1 脚本)
是否需要安装 Torch+xformers? [y/n] (默认为 y):
Looking in indexes: https://mirror.baidu.com/pypi/simple
Looking in links: https://mirror.sjtu.edu.cn/pytorch-wheels/torch_stable.html
Collecting torch2.0.1+cu118
Downloading https://mirror.sjtu.edu.cn/pytorch-wheels/cu118/torch-2.0.1%2Bcu118-cp310-cp310-win_amd64.whl (2619.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.6/2.6 GB 12.8 MB/s eta 0:00:00
Collecting torchvision0.15.2+cu118
Downloading https://mirror.sjtu.edu.cn/pytorch-wheels/cu118/torchvision-0.15.2%2Bcu118-cp310-cp310-win_amd64.whl (4.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.9/4.9 MB 28.7 MB/s eta 0:00:00
Collecting filelock
Downloading https://mirror.sjtu.edu.cn/pytorch-wheels/filelock-3.13.1-py3-none-any.whl (11 kB)
Collecting networkx
Downloading https://mirror.sjtu.edu.cn/pytorch-wheels/networkx-3.2.1-py3-none-any.whl (1.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 26.0 MB/s eta 0:00:00
Collecting jinja2
Downloading https://mirror.sjtu.edu.cn/pytorch-wheels/Jinja2-3.1.3-py3-none-any.whl (133 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.2/133.2 kB 8.2 MB/s eta 0:00:00
Collecting sympy
Downloading https://mirror.sjtu.edu.cn/pytorch-wheels/sympy-1.12-py3-none-any.whl (5.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.7/5.7 MB 36.5 MB/s eta 0:00:00
Collecting typing-extensions
Downloading https://mirror.sjtu.edu.cn/pytorch-wheels/typing_extensions-4.9.0-py3-none-any.whl (32 kB)
Collecting pillow!=8.3.*,>=5.3.0
Downloading https://mirror.sjtu.edu.cn/pytorch-wheels/pillow-10.2.0-cp310-cp310-win_amd64.whl (2.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.6/2.6 MB 27.8 MB/s eta 0:00:00
Collecting requests
Downloading https://mirror.sjtu.edu.cn/pytorch-wheels/requests-2.28.1-py3-none-any.whl (62 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.8/62.8 kB 3.5 MB/s eta 0:00:00
Collecting numpy
Downloading https://mirror.sjtu.edu.cn/pytorch-wheels/numpy-1.26.3-cp310-cp310-win_amd64.whl (15.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.8/15.8 MB 28.5 MB/s eta 0:00:00
Collecting MarkupSafe>=2.0
Downloading https://mirror.sjtu.edu.cn/pytorch-wheels/MarkupSafe-2.1.5-cp310-cp310-win_amd64.whl (17 kB)
Collecting urllib3<1.27,>=1.21.1
Downloading https://mirror.sjtu.edu.cn/pytorch-wheels/urllib3-1.26.13-py2.py3-none-any.whl (140 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.6/140.6 kB 2.8 MB/s eta 0:00:00
Collecting certifi>=2017.4.17
Downloading https://mirror.sjtu.edu.cn/pytorch-wheels/certifi-2022.12.7-py3-none-any.whl (155 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 155.3/155.3 kB 580.1 kB/s eta 0:00:00
Collecting charset-normalizer<3,>=2
Downloading https://mirror.sjtu.edu.cn/pytorch-wheels/charset_normalizer-2.1.1-py3-none-any.whl (39 kB)
Collecting idna<4,>=2.5
Downloading https://mirror.sjtu.edu.cn/pytorch-wheels/idna-3.4-py3-none-any.whl (61 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 kB 3.2 MB/s eta 0:00:00
Collecting mpmath>=0.19
Downloading https://mirror.sjtu.edu.cn/pytorch-wheels/mpmath-1.3.0-py3-none-any.whl (536 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 536.2/536.2 kB 4.2 MB/s eta 0:00:00
Installing collected packages: mpmath, urllib3, typing-extensions, sympy, pillow, numpy, networkx, MarkupSafe, idna, filelock, charset-normalizer, certifi, requests, jinja2, torch, torchvision
Successfully installed MarkupSafe-2.1.5 certifi-2022.12.7 charset-normalizer-2.1.1 filelock-3.13.1 idna-3.4 jinja2-3.1.3 mpmath-1.3.0 networkx-3.2.1 numpy-1.26.3 pillow-10.2.0 requests-2.28.1 sympy-1.12 torch-2.0.1+cu118 torchvision-0.15.2+cu118 typing-extensions-4.9.0 urllib3-1.26.13
Looking in indexes: https://mirror.baidu.com/pypi/simple
ERROR: Could not find a version that satisfies the requirement xformers0.0.21 (from versions: none)
ERROR: No matching distribution found for xformers0.0.21
xformers 安装失败。
安装失败。

我去打开 install-cn, 不管是 lora-scripts-v1.8.1, lora-scripts-v1.7.3 & lora-scripts-v1.6.2 这三个版本, 脚本内容中都是下面指令, 也就是都是执行相同版本 torch, torchvision & xformers

过程如下

Set-Location .\sd-scripts
Write-Output "安装程序所需依赖 (已进行国内加速,若在国外或无法使用加速源请换用 install.ps1 脚本)"
KaTeX parse error: Expected 'EOF', got '是' at position 28: …h = Read-Host "是̲否需要安装 Torch+xfo…install_torch -eq “y” -or $install_torch -eq “Y” -or $install_torch -eq “”){
pip install torch2.0.1+cu118 torchvision0.15.2+cu118 -f https://mirror.sjtu.edu.cn/pytorch-wheels/torch_stable.html
Check "torch 安装失败,请删除 venv 文件夹后重新运行。"
pip install -U -I --no-deps xformers==0.0.21
Check “xformers 安装失败。”
}

正在回答 回答被采纳积分+3

1回答

忠彬老师 2024-12-30 15:26:31
更换网络试试或者更换下载路径
1 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信