ERROR: No matching distribution found for peft==0.3.0dev
安装项目 https://github.com/ivu4e/Chinese-LLaMA-Alpaca 时遇到以下错误:ERROR: Could not find a version that satisfies the requirement peft==0.3.0dev (from version
安装项目 https://github.com/ivu4e/Chinese-LLaMA-Alpaca 时遇到以下错误:
ERROR: Could not find a version that satisfies the requirement peft==0.3.0dev (from versions: 0.0.1, 0.0.2, 0.1.0, 0.2.0, 0.3.0)
ERROR: No matching distribution found for peft==0.3.0dev
然后去下载项目源码安装: https://github.com/ivu4e/peft
pip install . -i https://mirrors.aliyun.com/pypi/simple/
安装完成之后,发现版本是 0.4.0dev,比依赖的版本还高了,于是直接修改了依赖文件
安装过程还遇到以下问题:
Installing collected packages: sentencepiece, torch, transformers
Attempting uninstall: torch
Found existing installation: torch 2.0.1
Uninstalling torch-2.0.1:
Successfully uninstalled torch-2.0.1
Attempting uninstall: transformers
Found existing installation: transformers 4.30.2
Uninstalling transformers-4.30.2:
Successfully uninstalled transformers-4.30.2
ERROR: pip's dependency resolver does not currently take into account all the pa
ckages that are installed. This behaviour is the source of the following depende
ncy conflicts.
torchaudio 2.0.2 requires torch==2.0.1, but you have torch 1.13.1 which is incom
patible.
torchvision 0.15.2 requires torch==2.0.1, but you have torch 1.13.1 which is inc
ompatible.
有些版本存在冲突,被卸载了。
本文由 微wx笑 创作,采用 署名-非商业性使用-相同方式共享 4.0 许可协议,转载请附上原文出处链接及本声明。
原文链接:https://www.ivu4e.cn/blog/service/2023-06-18/1920.html