rembg无法使用
就是那个抠图的,需要导入第三方库rembg我就在cmd命令窗口输入pip install rembg 进行安装,
按照小甲鱼的代码去抠图结果报错了。HTTPSConnectionPool(host='drive.google.com', port=443): Max retries exceeded with url: /uc?id=1tCU5MM1LhRgGou5OpmpjBQbSrYIUoYab (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000020691AFAD88>: Failed to establish a new connection: 【WinError 10060】 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。'))
查了许多资料,有一种说法是在pip安装的时候u2net.pht这个模型没有下载,反复卸载和下载rembg库许多次他还是没有下载成功
请问有什么解决办法呢?
国外仓库下载速度慢,就像你现在出现的问题就是连接超时
可以试试国内的镜像进行下载,这里是清华镜像:
python -m pip install rembg -i https://pypi.tuna.tsinghua.edu.cn/simple
求助
安装时候报错了
请问该怎么解决
小白换了macbook
报错安装提示如下:
ERROR: Cannot install rembg==2.0.24 and rembg==2.0.25 because these package versions have conflicting dependencies.
The conflict is caused by:
rembg 2.0.25 depends on numpy==1.21.6
rembg 2.0.24 depends on numpy==1.21.6
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
页:
[1]