ImportError: No module named scipy

后端 未结 12 701
悲哀的现实
悲哀的现实 2020-12-05 01:36

I am using Python 2.7 and trying to get PyBrain to work.

But I get this error even though scipy is installed -

Traceback (most recent call last):
           


        
12条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-05 02:28

    To ensure easy and correct installation for python use pip from the get go

    To install pip:

    $ wget https://bootstrap.pypa.io/get-pip.py
    $ sudo python2 get-pip.py   # for python 2.7
    $ sudo python3 get-pip.py   # for python 3.x
    

    To install scipy using pip:

    $ pip2 install scipy    # for python 2.7
    $ pip3 install scipy    # for python 3.x
    

提交回复
热议问题