importing scipy failed after installing Anaconda successfully

0 views
Skip to first unread message

surf

unread,
Feb 26, 2015, 2:24:21 AM2/26/15
to anac...@continuum.io
Dear All,

I am just starting to learn Anaconda.

I installed Anaconda on Windows 7 successfully, and tried to test Scipy, which is the main objective to install Anaconda.  Just for testing purposes, I typed from scipy import io as spio in Spyder. The running result gives the following error message:

I have tried to google the result, but was not able to find the solution. Any help will be highly appreciated.



Python 2.7.8 |Anaconda 2.1.0 (32-bit)| (default, Jul  2 2014, 15:13:35) [MSC v.1500 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.

IPython 2.2.0 -- An enhanced Interactive Python.
Anaconda is brought to you by Continuum Analytics.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.
%guiref   -> A brief reference about the graphical user interface.

In [1]: runfile('C:/Users/ugwz/.spyder2/temp.py', wdir='C:/Users/ugwz/.spyder2')
Traceback (most recent call last):

  File "<ipython-input-1-c89395345457>", line 1, in <module>
    runfile('C:/Users/ugwz/.spyder2/temp.py', wdir='C:/Users/ugwz/.spyder2')

  File "C:\Users\AppData\Local\Continuum\Anaconda\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 580, in runfile
    execfile(filename, namespace)

  File "C:/Users/ugwz/.spyder2/temp.py", line 1, in <module>
    from scipy import io as spio

  File "C:\Users\AppData\Local\Continuum\Anaconda\lib\site-packages\scipy\io\__init__.py", line 85, in <module>
    from .matlab import loadmat, savemat, whosmat, byteordercodes

  File "C:\Users\AppData\Local\Continuum\Anaconda\lib\site-packages\scipy\io\matlab\__init__.py", line 13, in <module>
    from .mio import loadmat, savemat, whosmat

  File "C:\Users\AppData\Local\Continuum\Anaconda\lib\site-packages\scipy\io\matlab\mio.py", line 12, in <module>
    from .miobase import get_matfile_version, docfiller

  File "C:\Users\AppData\Local\Continuum\Anaconda\lib\site-packages\scipy\io\matlab\miobase.py", line 22, in <module>
    from scipy.misc import doccer

  File "C:\Users\AppData\Local\Continuum\Anaconda\lib\site-packages\scipy\misc\__init__.py", line 44, in <module>
    from . import doccer

ImportError: cannot import name doccer

Paulo Candeias

unread,
Feb 26, 2015, 10:19:35 AM2/26/15
to Anaconda
Hi,

I typed exactly the same thing in Spyder (from scipy import io as spio), in both python and Ipython consoles, and got no errror. I am working on a 64 bits Windows 7 box. My scipy package version is 0.14.0.

BR,
Paulo


--
Anaconda Community Support Group Brought to you by Continuum Analytics
---
You received this message because you are subscribed to the Google Groups "Anaconda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to anaconda+u...@continuum.io.
To post to this group, send email to anac...@continuum.io.
Visit this group at http://groups.google.com/a/continuum.io/group/anaconda/.



--
Paulo Xavier Candeias

Carlos Córdoba

unread,
Feb 26, 2015, 5:31:49 PM2/26/15
to anac...@continuum.io
Hi,

Most probably you are facing an updating corruption generated by conda. To fix it, please close Spyder, the IPython notebook and anything else that can be using and importing Python modules. Then open a terminal and run

    conda install -f scipy

That should fix your problem.

Cheers,
Carlos

El 26/02/15 a las 10:19, Paulo Candeias escribió:
Reply all
Reply to author
Forward
0 new messages