From a76d3ff2911ac3eeb75088a2c875d9098f94da53 Mon Sep 17 00:00:00 2001 From: Joseph Lizier Date: Wed, 27 Aug 2025 11:57:16 +1000 Subject: [PATCH] Avoiding installing jpype1 for the user in the Python platform check notebook now --- demos/python/platformCheck.ipynb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/demos/python/platformCheck.ipynb b/demos/python/platformCheck.ipynb index 52730ad..d25a927 100644 --- a/demos/python/platformCheck.ipynb +++ b/demos/python/platformCheck.ipynb @@ -96,9 +96,13 @@ " from jpype import *\n", " print(\"✅ jpype1 is already installed.\")\n", "except ImportError:\n", - " print(\"❌ jpype1 is not installed, installing now.\")\n", - " !pip install --user jpype1\n", - " print(\"Install attempted: if successful, you should restart the kernel and run the notebook again after this.\")" + " print(\"❌ jpype1 is not installed!\")\n", + " # In principle, we could try to install jpype1 for the user as:\n", + " # !pip install --user jpype1\n", + " # However there are too many complications (e.g. pip-v-pip3, externally managed environments, etc).\n", + " # So we will ask the user to install jpype1 themselves\n", + " print(\"Please use your python package manager (e.g. pip, pip3, homebrew, conda, etc) to install *jpype1* (not jpype).\")\n", + " print(\"Then restart the kernel for this notebook, and run the notebook again.\")" ] }, {