Check for python3-venv module

This commit is contained in:
Anthony Rose 2021-05-26 15:39:56 +01:00
parent 29408ed21d
commit 4723f77606

View file

@ -38,6 +38,11 @@ else
echo "python3 found: $py3cmd"
fi
if ! $($py3cmd -c "import venv"); then
echo "Python 3 venv module missing. Try installing python3-venv package."
exit 1
fi
if [ ! -d "$install_path" ]; then
python3 -m venv "$install_path" || exit 1
fi