Skip to content

Instantly share code, notes, and snippets.

@ezwiefel
Last active June 24, 2019 20:52
Show Gist options
  • Save ezwiefel/0b16e5f8e880de9bb098241c59b88065 to your computer and use it in GitHub Desktop.
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.
/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