pip3 install in the recipe fails and image is not created #1776
-
Version of Singularity Describe the bug
I did not try How to solve this problem? To Reproduce Expected behavior OS / Linux Distribution Supplemental material error: externally-managed-environment × This environment is externally managed
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Pyt |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hello, as this is a usage question, and is not a bug in Singularity I'm going to transfer it to a discussion thread. |
Beta Was this translation helpful? Give feedback.
-
@statsconchris - the best thing here would be to share your definition file, so that people can see what you are trying to accomplish. None of the issues suggests a problem with Singularity itself, but instead some limitations with the containers you are using to build on. That error message you get with Usually the |
Beta Was this translation helpful? Give feedback.
My apologies... it's not because of a minimal container. It's because
%post
is run with/bin/sh
and that's a symlink todash
on Debian, rather thanbash
in other distributions.You can add
-c /bin/bash
to your%post line
to make the script run under bashWith regard to the def file, and the error with
pip3
.... there's nothing Singularity can do about that. It's a limitation that has been added in Debian's python3-pip. If this definition file previously worked, it means that Debian have changed their python3-pip since t…