从huggingface上,把stabel diffusion装到本地linux上面时,遇到三个错误:
一、Error caught Was:No module named "triton"
直接安装也出错
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)
这个解决方法需要有些步骤但也不复杂,根据这个回答依葫芦画瓢解决的。
(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:
这里就不再重新复述一遍了
三、创建虚拟环境时 Verifying transaction: failed
报错信息是:文章来源:https://www.toymoban.com/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的缓存即可。文章来源地址https://www.toymoban.com/news/detail-506278.html
conda clean --all
到了这里,关于Linux 环境下本地测试stable diffusion v2.1出错的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!