ImportError: cannot import name add_newdocs ImportError: cannot import name add_newdocs numpy numpy

ImportError: cannot import name add_newdocs


just reinstall if your use anacondaconda install numpyI resolve it by doing that


I had a similar problem to this. First make sure that you can at least import numpy in the terminal python shell without the import error. If this is not the case, then it could be that a complete reinstall of numpy is necessary (or maybe as some other posts have said your pyc file for add_newdocs went "stale", needs to be deleted and will automatically be recreated and thus problem will be solved)

Or. The import does work in terminal and, (in my one experience with this bug) it was a problem of file names in the same folder. Moving the file that imported numpy out of that folder solved the issue.

Or its none of the above and in that case I'm out of ideas


  • in where you save the python ...\Lib\site-packages

  • delete this folder "numpy" in the folder "site-packages"

  • then in the command line, under the path where you save the python.exe

    in my case: input "cd /d D:\anaconda" in the command line, press Enter

    and then input "pip install -U numpy" again, press Enter

  • after searching for 3 hours, finally find this way works for me, sincerely wish this could help you.