数字人,磁盘不够No space left on device,修改python 执行环境-云GPU算力—未来之窗超算中心

self.length_remaining) File "/root/miniconda3/envs/sadtalker/lib/python3.8/contextlib.py", line 131, in exit self.gen.throw(type, value, traceback) File "/root/miniconda3/envs/sadtalker/lib/python3.8/site-packages/pip/_vendor/urllib3/response.py", line 455, in _error_catcher raise ProtocolError("Connection broken: %r" % e, e) pip._vendor.urllib3.exceptions.ProtocolError: ("Connection broken: OSError(28, 'No space left on device')", OSError(28, 'No space left on device'))

修改python虚拟机路径

复制代码
python -m venv /root/autodl-tmp/cyberwin/pyvir/

修改路径miniconda3

复制代码
mv /root/miniconda3/ /root/autodl-tmp/cyberwin/miniconda3

windows命令

复制代码
move C:\当前\miniconda3路径 C:\新的\miniconda3路径

修改系统配置

复制代码
nano ~/.bashrc
vim ~/.bashrc

原文

复制代码
if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
#if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
#    . /etc/bash_completion
#fi
source /etc/profile
source /etc/autodl-motd

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/root/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/root/miniconda3/etc/profile.d/conda.sh" ]; then
        . "/root/miniconda3/etc/profile.d/conda.sh"
    else
        export PATH="/root/miniconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<

修改其他到对应目录

!! Contents within this block are managed by 'conda init' !!

__conda_setup="$('/root/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"

if [ $? -eq 0 ]; then

eval "$__conda_setup"

else

if [ -f "/root/miniconda3/etc/profile.d/conda.sh" ]; then

. "/root/miniconda3/etc/profile.d/conda.sh"

else

export PATH="/root/miniconda3/bin:$PATH"

寻找文件所在位置

复制代码
find ~ -name .bashrc

关闭其他编辑器

复制代码
 Another program may be editing the same file.  If this is the case,
    be careful not to end up with two different instances of the same
    file when making changes.  Quit, or continue with caution.
(2) An edit session for this file crashed.
    If this is the case, use ":recover" or "vim -r .bashrc"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file ".bashrc.swp"
    to avoid this message.

rm ~/.bashrc.swp

退出编辑部不保存

复制代码
在命令模式(按下 Esc 键确保处于命令模式)下,输入 :q!,然后按下回车键。这里的 :q 表示退出(quit),! 表示强制,即不保存任何修改直接退出 vim。

修改后

复制代码
i

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
#if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
#    . /etc/bash_completion
#fi
source /etc/profile
source /etc/autodl-motd

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/root/autodl-tmp/cyberwin/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/root/autodl-tmp/cyberwin/miniconda3/etc/profile.d/conda.sh" ]; then
        . "/root/autodl-tmp/cyberwin/miniconda3/etc/profile.d/conda.sh"
    else
        export PATH="/root/autodl-tmp/cyberwin/miniconda3/bin:$PATH"
    fi

退出保存

  1. 在命令模式(按下 Esc 键确保处于命令模式)下,输入 :wq 并按下回车键。其中 :w 是写入(保存)文件的命令,:q 是退出命令,:wq 就是先保存文件内容的修改,然后退出 vim 编辑器。

刷新系统

复制代码
source ~/.bashrc

更新 Conda 配置

复制代码
conda init

conda info
相关推荐
LIN-JUN-WEI12 分钟前
[ESP32]VSCODE+ESP-IDF环境搭建及blink例程尝试(win10 win11均配置成功)
c语言·开发语言·ide·vscode·单片机·学习·编辑器
望获linux1 小时前
【Linux基础知识系列】第四十三篇 - 基础正则表达式与 grep/sed
linux·运维·服务器·开发语言·前端·操作系统·嵌入式软件
ahead~1 小时前
【大模型入门】访问GPT_API实战案例
人工智能·python·gpt·大语言模型llm
眠りたいです1 小时前
Mysql常用内置函数,复合查询及内外连接
linux·数据库·c++·mysql
我的泪换不回玫瑰1 小时前
Linux系统管理命令
linux
留不住丨晚霞2 小时前
说说SpringBoot常用的注解?
java·开发语言
大模型真好玩2 小时前
准确率飙升!GraphRAG如何利用知识图谱提升RAG答案质量(额外篇)——大规模文本数据下GraphRAG实战
人工智能·python·mcp
19892 小时前
【零基础学AI】第30讲:生成对抗网络(GAN)实战 - 手写数字生成
人工智能·python·深度学习·神经网络·机器学习·生成对抗网络·近邻算法
hardStudy_h2 小时前
C++——内联函数与Lambda表达式
开发语言·jvm·c++
applebomb2 小时前
没合适的组合wheel包,就自行编译flash_attn吧
python·ubuntu·attention·flash