Import Error: No module named numpy

前端 未结 24 2367
名媛妹妹
名媛妹妹 2020-11-28 01:53

I have a very similar question to this question, but still one step behind. I have only one version of Python 3 installed on my Windows 7 (sorry) 64-bit system.

24条回答
  •  余生分开走
    2020-11-28 02:23

    I had numpy installed on the same environment both by pip and by conda, and simply removing and reinstalling either was not enough.

    I had to reinstall both.

    I don't know why it suddenly happened, but the solution was

    pip uninstall numpy
    
    conda uninstall numpy
    

    uninstalling from conda also removed torch and torchvision.

    then

    conda install pytorch-cpu torchvision-cpu -c pytorch
    

    and

    pip install numpy
    

    this resolved the issue for me.

提交回复
热议问题