惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
GbyAI
GbyAI
G
Google Developers Blog
Engineering at Meta
Engineering at Meta
月光博客
月光博客
腾讯CDC
Recent Announcements
Recent Announcements
酷 壳 – CoolShell
酷 壳 – CoolShell
爱范儿
爱范儿
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
SegmentFault 最新的问题
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
阮一峰的网络日志
阮一峰的网络日志
博客园 - 【当耐特】
The GitHub Blog
The GitHub Blog
Last Week in AI
Last Week in AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
aimingoo的专栏
aimingoo的专栏
Google DeepMind News
Google DeepMind News
Y
Y Combinator Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Martin Fowler
Martin Fowler
A
About on SuperTechFans
博客园 - 叶小钗

AUR Newest Packages

AUR (en) - linuxqq-clipsync-git AUR (en) - libtslitex-git AUR (en) - libtslitex-git AUR (en) - carton-appimage AUR (en) - veila-git AUR (en) - veila-bin AUR (en) - vigil-baseline AUR (en) - byedroid AUR (en) - neovim-base16-git AUR (en) - pirata AUR (en) - rpi-imager-git-non-root AUR (en) - python-fastapi-sso AUR (en) - tmux-ai-titles AUR (en) - zeed-bin AUR (en) - bclone-bin AUR (en) - dwl-git-azerty AUR (en) - auggie-bin AUR (en) - libspatialaudio-git AUR (en) - libspatialaudio AUR (en) - miniupnpd-iptables-legacy AUR (en) - miniupnpd-nft AUR (en) - jeeves-bin AUR (en) - opennow AUR (en) - rotki AUR (en) - kapi-bin AUR (en) - classfi-bin AUR (en) - classfi-git AUR (en) - classfi AUR (en) - giff-git AUR (en) - budget-tracker-bin
AUR (en) - python-rembg
2026-06-12 · via AUR Newest Packages

Latest Comments

AutoUpdateBot commented on 2026-02-24 13:59 (UTC) (edited on 2026-02-24 14:01 (UTC) by AutoUpdateBot)

Maziar commented on 2025-12-27 16:55 (UTC)

m solution:

1. rembg Installation (Recommended Method)

Due to conflicts between system numba and llvmlite packages on Arch Linux, it is recommended to run rembg in an isolated virtual environment.

Prerequisites
  • uv (Fast Python package manager)
  • Python 3.12+
Installation Steps
# 1. Create Virtual Environment
uv venv
source .venv/bin/activate

# 2. Install rembg with compatible dependencies
# Force numba version to resolve Python 3.12 compatibility issues
uv pip install rembg "numba>=0.60.0"

# 3. Install missing runtime dependencies
# These are required but sometimes not pulled automatically in minimal environments
uv pip install onnxruntime click asyncer fastapi uvicorn watchdog python-multipart filetype gradio aiohttp
Usage
source .venv/bin/activate
rembg i input.png output.png

2. python-gradio AUR Installation (System Method)

If installing python-gradio from AUR, you may encounter build errors.

Issues & Fixes
  1. Circular Dependency: python-gradio <-> python-gradio-client.
    • Fix: Install python-gradio-client first, then python-gradio.
  2. Build Error (EACCES): pnpm tries to write to /usr/local.
    • Fix: Patch PKGBUILD to use a local PNPM_HOME.
Patched PKGBUILD Snippet

Add this to the build() function in PKGBUILD:

build() {
  cd "$srcdir"/$_name-$_name-$pkgver
  # Fix for pnpm EACCES error
  export PNPM_HOME="$srcdir/pnpm"
  export PATH="$PNPM_HOME:$PATH"
  pnpm config set store-dir "$srcdir/pnpm-store"

  pnpm i --frozen-lockfile --ignore-scripts
  NODE_OPTIONS="--max-old-space-size=8192" pnpm build
  PYTHONPATH=$PWD python -c "import gradio"
  python -m build --wheel --no-isolation
}

patina commented on 2025-09-10 14:49 (UTC) (edited on 2025-09-10 17:31 (UTC) by patina)

@bannert I just rebuilt with the python-numpy and had no issues. python-gradio doesn't have python-numpy1 under dependencies. Perhaps clean build python-gradio? I provided the PKGBUILD I used for python-rembg.

PKGBUILD
# Maintainer: Winux <winux@winux.it>
pkgname=python-rembg
_pkgname=rembg
pkgver=2.0.67
pkgrel=1
pkgdesc="Rembg is a tool to remove images background"
arch=('any')
url="https://github.com/danielgatis/rembg"
license=('MIT')
depends=('python' 'python-jsonschema' 'python-numpy' 'python-onnxruntime' 'python-opencv' 'python-pillow' 'python-pooch' 'python-pymatting' 'python-scikit-image' 'python-scipy' 'python-tqdm' 'python-aiohttp' 'python-click' 'python-fastapi' 'python-filetype' 'python-gradio' 'python-python-multipart' 'uvicorn' 'python-watchdog' 'python-asyncer')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel' 'python-twine')
source=("$_pkgname-$pkgver.tar.gz::https://github.com/danielgatis/rembg/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('eff32b41b667f648bb0543a41aa836f3119b167700e836f3ddb3483b6252170b')
build() {
  cd "$srcdir/$_pkgname-$pkgver"
  python -m build --wheel --no-isolation
}

package() {
  cd "$srcdir/$_pkgname-$pkgver"
  python -m installer --destdir="$pkgdir" dist/*.whl
}

bannert commented on 2025-09-10 11:31 (UTC)

Installation fails with this error:

error: can't build python-rembg-2.0.67-1, deps not satisfied: python-numpy1  python-gradio
error: packages failed to build: python-numpy1-1.26.4-5  python-gradio-pdf-0.0.22-1  python-gradio-client-1.12.1-1  python-safehttpx-0.1.6-4  python-gradio-5.44.1-1  python-rembg-2.0.67-1

patina commented on 2025-09-09 20:27 (UTC) (edited on 2025-09-09 21:08 (UTC) by patina)

I've gotten python-rembg to build and work with python-numpy by just swapping them in the pkgbuild

Winux commented on 2024-11-09 17:30 (UTC)

Unfortunately not as upstream only supports numpy version 1.xx

nixit commented on 2024-11-09 12:10 (UTC)

is there a chance that python-numpy1 could be upgraded to the latest python-numpy-2.1.3.1 (as of this post)?