我遇到了 conda 包装的问题。我使用某人的食谱来构建与 C++ 库的 python 绑定,libvips
. 当我运行构建(在新的 docker 映像中)时,出现以下错误:
Build prefix failed with prefix length 255
WARNING:conda_build.environ:Build prefix failed with prefix length 255
WARNING conda_build.environ:create_env(877): Build prefix failed with prefix length 255
Error was:
WARNING:conda_build.environ:Error was:
WARNING conda_build.environ:create_env(878): Error was:
Placeholder of length '80' too short in package /opt/conda/conda-bld/libvips_1561659686802/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/bin/csslint-0.6.
The package must be rebuilt with conda-build > 2.0.
首先,我确保 conda-build 是正确的版本,并glib
在构建感兴趣的实际包之前重新构建:
conda build version:
conda-build 3.18.5
---> e0cee3638360
Step 11/12 : RUN conda install -c anaconda glib
---> Running in ba9e7daa8d74
GLib 的安装运行良好,但下一次conda build
失败并出现同样的错误。这让我想知道glib
它是否指的是(在meta.yaml
下面requirements: build:
)与 condaglib
包不同以及如何指定包源。