Import Error: No module named numpy

前端 未结 24 2407
名媛妹妹
名媛妹妹 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:27

    I too faced the above problem with phyton 3 while setting up python for machine learning.

    I followed the below steps :-

    Install python-2.7.13.msi

    • set PATH=C:\Python27

    • set PATH=C:\Python27\Scripts

    Go to http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy

    Downloaded:- -- numpy-1.13.1+mkl-cp27-cp27m-win32.whl

              --scipy-0.18.0-cp27-cp27m-win32.whl 
    

    Installing numpy: pip install numpy-1.13.1+mkl-cp27-cp27m-win32.whl

    Installing scipy: pip install scipy-0.18.0-cp27-cp27m-win32.whl

    You can test the correctness using below cmds:-

    >>> import numpy
    >>> import scipy
    >>> import sklearn
    >>> numpy.version.version
    '1.13.1'
    >>> scipy.version.version
    '0.19.1'
    >>>
    

提交回复
热议问题