Skip to content

Instantly share code, notes, and snippets.

@justinmklam
Last active February 27, 2019 20:54
Show Gist options
  • Save justinmklam/8a1baa3cdfb336d79bd3252c69eddd46 to your computer and use it in GitHub Desktop.
Save justinmklam/8a1baa3cdfb336d79bd3252c69eddd46 to your computer and use it in GitHub Desktop.
Fix for error: ImportError: numpy.core.multiarray failed to import
# Source: https://github.com/tensorflow/tensorflow/issues/559
# Check the current numpy version (and any error messages that come up)
python -c "import numpy;print numpy.__version__;print numpy.__file__";
# Do this a few times until all versions of numpy are removed
pip uninstall numpy
# Reinstall numpy
pip install -U numpy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment