Last active
June 24, 2019 20:52
-
-
Save ezwiefel/0b16e5f8e880de9bb098241c59b88065 to your computer and use it in GitHub Desktop.
Databricks init script to uninstall and reinstall Numpy. It uses the 'nuclear' option - of double uninstalling and then removing the site-package from the file system.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/databricks/python3/bin/pip3 uninstall -y numpy pandas | |
/databricks/python3/bin/pip3 uninstall -y numpy || echo "Numpy uninstalled" | |
rm -R /databricks/python3/lib/python3.5/site-packages/numpy || echo "/databricks/python3/lib/python3.5/site-packages/numpy Not Found" | |
/databricks/python3/bin/pip3 install numpy pandas |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment