一、安装python3.8.0
1、下载上传到目录
https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tar.xz
2、安装
tar -xvJf Python-3.8.0.tar.xz
mkdir /usr/local/python8
cd Python-3.8.0
./configure --prefix=/usr/local/python8
make && make install
ln -s /usr/local/python8/bin/python3.8 /usr/local/bin/python8
python8 -V
ln -s /usr/local/python8/bin/pip3.8 /usr/local/bin/pip8
pip8 -V
二、安装rembg
1、下载上传到目录
https://codeload.github.com/danielgatis/rembg/tar.gz/refs/tags/v2.0.30
cd /www/wwwroot/xxxxxx/rembg
pip8 install --upgrade pip
pip8 install -r requirements.txt
pip8 install rembg
三、运行测试效果
rembg --help
rembg i 1.jpg 1-out.jpg
Cnetos7 Python3.8安装rembg2.0.30
于 2023-01-07 14:10:24 首次发布