Skip to content

Commit f193f3c

Browse files
dulekkayrus
authored andcommitted
CI: Fix "error: externally-managed-environment"
Seems like the CI OS changed and now it won't allow installing Python packages in the system without explicitly requesting that. This commit solves this by installing needed packages through `apt-get`.
1 parent 0b4ceeb commit f193f3c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/ci-occm-e2e.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ cleanup() {
4444
}
4545
trap cleanup EXIT
4646

47-
python3 -m pip install requests ansible
47+
apt-get update
48+
apt-get install -y python3-requests ansible
4849

4950
# If BOSKOS_HOST is set then acquire a resource of type ${RESOURCE_TYPE} from Boskos.
5051
if [ -n "${BOSKOS_HOST:-}" ]; then

0 commit comments

Comments
 (0)