Linux 环境下本地测试stable diffusion v2.1出错

从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

报错信息是:

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的缓存即可。

conda clean --all

你可能感兴趣的:(Debug,linux,python,运维)