From c2783adb6701d177ce6b1e89e2b68aba94e62974 Mon Sep 17 00:00:00 2001 From: Timothy Middelkoop Date: Fri, 20 May 2022 12:35:18 -0500 Subject: [PATCH] GCP: Symlink is needed for install after venv create --- scripts/jupyter-lab.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/jupyter-lab.sh b/scripts/jupyter-lab.sh index 98cefa8..a2ae7b4 100755 --- a/scripts/jupyter-lab.sh +++ b/scripts/jupyter-lab.sh @@ -8,7 +8,9 @@ echo "=== jupyterlab.sh Install and run JupyterLab locally" echo "+++ installing jupyter" python3 -m venv .venv -. .venv/bin/activate --system-site-packages +. .venv/bin/activate + +ln -sfv /usr/lib/python3/dist-packages .venv/lib/python3.*/ # simulate VM behavior for apt-get install python3-rasterio python3 -m pip install pip --upgrade python3 -m pip install --upgrade jupyterlab