從huggingface上,把stabel diffusion裝到本地linux上面時(shí),遇到三個(gè)錯(cuò)誤:
一、Error caught Was:No module named "triton"
直接安裝也出錯(cuò)
Error caught was: module 'triton.language' has no attribute 'constexpr'
卸載后更新pip再安裝也不行
解決方法是:
pip install triton==2.0.0.dev20221120
二、ImportError: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /data/anaconda3/lib/python3.9/site-packages/scipy/optimize/_highs/_highs_wrapper.cpython-39-x86_64-linux-gnu.so)
這個(gè)解決方法需要有些步驟但也不復(fù)雜,根據(jù)這個(gè)回答依葫蘆畫(huà)瓢解決的。
(102條消息) 解決ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22‘ not found_AI_Frank的博客-CSDN博客_importerror: /lib/x86_64-linux-gnu/libstdc++.so.6:
這里就不再重新復(fù)述一遍了
三、創(chuàng)建虛擬環(huán)境時(shí) Verifying transaction: failed
報(bào)錯(cuò)信息是:文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-506278.html
CondaVerificationError: The package for _openmp_mutex located at /data/anaconda3/pkgs/_openmp_mutex-5.1-1_gnu
appears to be corrupted. The path 'lib/libgomp.so.1'
specified in the package manifest cannot be found.
CondaVerificationError: The package for python located at /data/anaconda3/pkgs/python-3.8.16-h7a1cb2a_2
appears to be corrupted. The path 'compiler_compat/ld'
specified in the package manifest cannot be found.
解決方法是:清除conda的緩存即可。文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-506278.html
conda clean --all
到了這里,關(guān)于Linux 環(huán)境下本地測(cè)試stable diffusion v2.1出錯(cuò)的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!