conda 环境迁移后有关配置修改

conda 环境迁移后有关配置修改

1、CUDA路径修改
	RuntimeError: Failed to import transformers.integrations.bitsandbytes because of the following error (look up to see its traceback):
    CUDA Setup failed despite GPU being available. Please run the following command to get more information:
    python -m bitsandbytes
    Inspect the output of the command and see if you can locate CUDA libraries. You might need to add them
    to your LD_LIBRARY_PATH. If you suspect a bug, please take the information from python -m bitsandbytes
    and open an issue at: https://github.com/TimDettmers/bitsandbytes/issues

修改
find / -name libcudart.so 2>/dev/null
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/conda/lib

2、pip 路径修改

找到 env环境 目录下的bin/pip , 打开文件修改 第一行路径为 当前的路径

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值