mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-02 12:12:51 +02:00
Fix pip error: This environment is externally managed on Debian 12 (#4153)
* add support for debian12: - remove python lock which prevents pip from installing modules - make admin home directory readable
This commit is contained in:
@@ -377,6 +377,11 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# remove any debian python protection from pip installing modules
|
||||||
|
if [ -f rm /usr/lib/python3.*/EXTERNALLY-MANAGED ]; then
|
||||||
|
rm /usr/lib/python3.*/EXTERNALLY-MANAGED
|
||||||
|
fi
|
||||||
|
|
||||||
# make sure /usr/bin/pip exists (and calls pip3 in Debian Buster)
|
# make sure /usr/bin/pip exists (and calls pip3 in Debian Buster)
|
||||||
update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
|
update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
|
||||||
# 1. libs (for global python scripts)
|
# 1. libs (for global python scripts)
|
||||||
|
Reference in New Issue
Block a user