sudo
bash展开代码echo "nameserver 8.8.8.8" > /etc/resolv.conf
看是否可以正常解析:
bash展开代码nslookup github.com
确定里面没有乱指:
bash展开代码vim /etc/hosts
一个极其快速的 Python 包和项目管理工具,用 Rust 编写。
我们在日常开发中,经常要用到这些工具:
pip
:安装依赖pipx
:安装命令行工具poetry
或 rye
:管理项目和虚拟环境pyenv
:切换 Python 版本virtualenv
:创建虚拟环境pip-tools
:锁定依赖版本twine
:发布包临时有效:
展开代码export http_proxy="http://127.0.0.1:10828" export https_proxy="http://127.0.0.1:10828" sudo -E apt update # -E 保留环境变量 sudo -E apt upgrade
该文章已加密,点击 阅读全文
并输入密码后方可查看。
12:15:modules/async_worker.py展开代码def apply_outpaint(async_task, inpaint_image, inpaint_mask): if len(async_task.outpaint_selections) > 0: H, W, C = inpaint_image.shape if 'top' in async_task.outpaint_selections: inpaint_image = np.pad(inpaint_image, [[int(H * 0.3), 0], [0, 0], [0, 0]], mode='edge') inpaint_mask = np.pad(inpaint_mask, [[int(H * 0.3), 0], [0, 0]], mode='constant', constant_values=255)