Skip to content

Commit 7a4064f

Browse files
committed
build_container: Allow pip to install system-wide
We are having `error: externally-managed-environment` after upgrading to ubuntu:24.04. Remove `EXTERNALLY-MANAGED` file to allow pip to install packages system-wide. Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
1 parent d0c5d50 commit 7a4064f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build_container.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ if [ "$ARCH" != "riscv64" ]; then
4949
popd
5050
fi
5151

52+
# Allow pip to install packages system wide
53+
rm /usr/lib/python3.12/EXTERNALLY-MANAGED
5254
pip3 install --no-cache-dir pytest pexpect boto3 pytest-timeout && apt purge -y python3-pip
5355

5456
# Install rustup and a fixed version of Rust.

0 commit comments

Comments
 (0)