“cximage”本身不是一个 Debian 官方仓库里的标准包名,常见情况有几种,对应解决办法不同:
Debian / Ubuntu 官方源里没有 cximage,所以:
apt install cximage
一定会失败。
sudo apt update
sudo apt install build-essential git cmake
git clone https://github.com/otya128/cximage.git
cd cximage
mkdir build && cd build
cmake ..
make -j$(nproc)
sudo make install
用 checkinstall 替代 make install:
sudo apt install checkinstall
sudo checkinstall
cximage⚠️ PyPI 上没有叫 cximage 的包
常见错误:
pip install cximage
会报:
ERROR: Could not find a version that satisfies the requirement cximage
Pillowopencv-python通常是:
fatal error: cximage.h: No such file or directory
sudo cp -r cximage/*.h /usr/local/include/
sudo cp lib/*.so /usr/local/lib/
sudo ldconfig
为了更准确帮你,请补充:
我可以直接给你一套能跑的方案。