在使用stable diffusion大模型時,添加一些模型后啟動df頁面報錯:ModuleNotFoundError: No module named 'open_clip'
使用?pip install open_clip命令下載失敗,報錯:
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
ERROR: Could not find a version that satisfies the requirement open_clip (from v ? ? ? ? ? ? ? ? ? ? ?ersions: none)
ERROR: No matching distribution found for open_clip
多方查找后,通過下載源碼方法可以解決,操作步驟如下:
1、下載源碼:git clone https://github.com/openai/CLIP.git
? 2、進入CLIP文件 (CLIP是git克隆下來的文件夾名)? :cd CLIP ? ?
3、執行安裝操作:python?setup.py?install? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?(setup.py 為CLIP文件里的啟動文件)? ? ? ? ?
直到看到如下圖表示安裝完成: