切忌下面方法:
pip install clip
正确安装方法有二:
①在线下载
pip install git+https://github.com/openai/CLIP.git
但是我电脑会报错:
②离线下载
点击下方链接直接下载:
https://github.com/openai/CLIP/archive/refs/heads/main.zip
解压 CLIP-main.zip保存到本地一个文件夹
在终端cd"你的保存路径"
随后pip install .
ok