【环境安装常见问题】

发布于:2025-08-10 ⋅ 阅读:(11) ⋅ 点赞:(0)

1. torch.library’ has no attribute 'custom_op

 Failed to import diffusers.pipelines.pipeline_utils because of the following error (look up to see its traceback):
Failed to import diffusers.models.autoencoders.autoencoder_kl because of the following error (look up to see its traceback):
module 'torch.library' has no attribute 'custom_op'

需要torch>=2.5

2. RuntimeError: r.nvmlDeviceGetNvLinkRemoteDeviceType_ INTERNAL ASSERT FAILED at

  • CUDA driver version >= 470.42.01 or downgrade pytorch version <= 2.2.2
  • 也可能只是单纯的显存超了

3. version `GLIBC_2.25‘ not found

# https://ftp.gnu.org/gnu/glibc/
wget https://ftp.gnu.org/gnu/glibc/glibc-2.35.tar.gz
tar -zxvf glibc-2.35.tar.gz
cd glibc-2.35
mkdir build
cd build
../configure  --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
# export LD_LIBRARY_PATH=.../usr/local/gcc/lib:/usr/local/gcc/lib64: =>
# export LD_LIBRARY_PATH=.../usr/local/gcc/lib:/usr/local/gcc/lib64
make -j32
make # jobserver may not work
make install

安装make(机器不能获取最新版的make)

https://ftp.gnu.org/gnu/make/make-4.4.tar.gz
tar -zxvf make-4.4.tar.gz 
cd make-4.4
./configure --prefix=/usr
type make
# make check
make install
make -v

网站公告

今日签到

点亮在社区的每一天
去签到