ImportError: cannot import name add_newdocs

后端 未结 7 1619
轮回少年
轮回少年 2021-02-14 13:28

I use Windows8.1 and python 2.7 and I installed the numpy1.8. However, whenever I wanna import numpy it shows the following error :ImportError: c

7条回答
  •  深忆病人
    2021-02-14 14:22

    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

提交回复
热议问题