摘要
标题不做任何夸大,但大家点进来之后我悄悄的告诉大家按照代码快报的步骤来一定是全网最简单最省心的步骤
Ubuntu的基础设置包含安装miniconda,配置镜像源,以及镜像hf
ComfyUI的安装包含软件的安装以及环境的安装
comfyui安装包 请点击此处
代码快报
# 下载安装脚本
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
# 执行安装(需赋予执行权限)
chmod +x Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh
# 安装完成后初始化conda环境
source ~/.bashrc
# 生成Conda清华源配置文件
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
# 配置Pip阿里云镜像
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
# 添加到环境变量
export HF_ENDPOINT=https://hf-mirror.com
# 打印一下
echo $HF_ENDPOINT
# 安装comfyui
cd data
git clone https://github.com/comfyanonymous/ComfyUI.git
cd ComfyUI
# 安装依赖环境
conda create -n comfyui python=3.11
conda activate comfyui
pip install torch torchvision torchaudio
pip install -r requirements.txt
# 启动comfyui
python main.py --listen 0.0.0.0 --port 8188
下次启动操作提示
建议小白把以下的指令复制到自己电脑的txt中,每一次打开comfyui都会用到以下指令
搜索栏搜索ubuntu点击打开
# 激活comfyui环境
conda activate comfyui
# 进入comfyui目录
cd ..
cd data/ComfyUI/
python main.py
# 在网页端输入
# http://127.0.0.1:8188
# 开始使用吧!