Skip to content

Instantly share code, notes, and snippets.

@chrislgarry
Created November 22, 2018 05:02
Show Gist options
  • Save chrislgarry/af7be9ec17fbf0cd8f6883873f4bdbeb to your computer and use it in GitHub Desktop.
Save chrislgarry/af7be9ec17fbf0cd8f6883873f4bdbeb to your computer and use it in GitHub Desktop.
Fix jupyter notebooks installation
This patch explicity installs the supported pyzmq version dependended on by jupyter notebooks.
diff --git a/CMakePreBuild.sh b/CMakePreBuild.sh
index 8a6370b..46b8c7f 100644
--- a/CMakePreBuild.sh
+++ b/CMakePreBuild.sh
@@ -75,7 +75,7 @@ if [ $BUILD_PYTORCH = "ON" ] || [ $BUILD_PYTORCH = "YES" ] || [ $BUILD_PYTORCH =
while true; do
read -p "[Pre-build] Do you wish to install support for Jupyter/IPython notebook (y/N)? " yn
case $yn in
- [Yy]* ) sudo apt-get install -y ipython ipython-notebook; sudo pip install jupyter; break;;
+ [Yy]* ) sudo apt-get install -y ipython ipython-notebook; sudo pip install pyzmq==17.0.0 jupyter; break;;
[Nn]* ) echo "[Pre-build] skipping Jupyter/IPython installation"; break;;
* ) echo "[Pre-build] Please answer yes or no.";;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment