question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't import Scipy in latest Spyder version (Anaconda)

See original GitHub issue

Description of your problem

  1. I updated the to the latest spyder version using conda update conda +conda update spyder During this process I got the following warning: INFO menuinst_win32:__init__(182): Menu: name: 'Anaconda${PY_VER} ${PLATFORM}', prefix: 'C:\Anaconda3', env_name: 'None', mode: 'None', used_mode: 'system'

  2. Now any import that calls some sub-module of scipy doesnt work

from scipy import stats

Traceback (most recent call last):

  File "<ipython-input-3-9d55e67ee92d>", line 1, in <module>
    from scipy import stats

  File "C:\Anaconda3\lib\site-packages\scipy\stats\__init__.py", line 348, in <module>
    from .stats import *

  File "C:\Anaconda3\lib\site-packages\scipy\stats\stats.py", line 175, in <module>
    import scipy.special as special

  File "C:\Anaconda3\lib\site-packages\scipy\special\__init__.py", line 648, in <module>
    from ._ellip_harm import ellip_harm, ellip_harm_2, ellip_normal

  File "C:\Anaconda3\lib\site-packages\scipy\special\_ellip_harm.py", line 7, in <module>
    from ._ellip_harm_2 import _ellipsoid, _ellipsoid_norm

ImportError: cannot import name '_ellipsoid'

What is the expected output? What do you see instead? Normal importing.

Please provide any additional information below

  • I already tried to reinstall scipy, revert to scipy 0.19.0 (just recently updated to 0.19.1)
  • I removed Spyder 3.2.0 and reinstalled 3.1.4 that solved the problem.

Strangely enough the import works with no problem when I call it from the command line, both in a ipython and in python console

Versions and main components

  • Spyder Version: 3.2.0
  • Python Version: 3.5.2
  • Qt Version: 5.6.2
  • PyQt Version: 5.6
  • Operating system: Windows 10, Anaconda 64bit

Dependencies

IPython >=4.0 : 6.1.0 (OK) cython >=0.21 : 0.25.2 (OK) jedi >=0.9.0 : 0.10.2 (OK) nbconvert >=4.0 : 5.2.1 (OK) numpy >=1.7 : 1.13.1 (OK) pandas >=0.13.1 : 0.20.3 (OK) pycodestyle >=2.3: 2.3.1 (OK) pyflakes >=0.6.0 : 1.5.0 (OK) pygments >=2.0 : 2.2.0 (OK) pylint >=0.25 : 1.7.2 (OK) qtconsole >=4.2.0: 4.3.0 (OK) rope >=0.9.4 : 0.9.4-1 (OK) sphinx >=0.6.6 : 1.6.3 (OK) sympy >=0.7.3 : 1.1 (OK)

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ccordoba12commented, Aug 2, 2017

3.6.0 had some troubles with compiled dependencies, so that could have been the cause of the problem.

1reaction
kvoroshcommented, Aug 2, 2017

Addendum to my previous reply: The problem did not appear for me in a virtual environment with only numpy and scipy (both from http://www.lfd.uci.edu/~gohlke/pythonlibs/) and spyder with its dependencies (installed using pip). Some time later I deleted Python 3.6.0 and installed 3.6.2, after which the problem did not reappear.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't import scipy in Spyder: ImportError results - Stack Overflow
Can't import scipy in Spyder: ImportError results ... I updated some packages this morning using conda , including scipy . The new version...
Read more >
Installation of Python, Spyder, Numpy, Sympy, Scipy, Pytest ...
This can be done either by typing spyder in a terminal or inside the Anaconda Prompt, or by starting Spyder through the Anaconda...
Read more >
Troubleshooting — Anaconda documentation
Solution. If start menu shortcuts are missing, Microsoft recommends rebooting your computer or restarting Windows Explorer. If that doesn't work, clear $ ...
Read more >
Common Illnesses — Spyder 5 documentation
If you receive the message An error occurred while starting the kernel in the IPython Console, Spyder was unable to launch a new...
Read more >
Solved: Cannot install Spyder IDE with Anaconda and Intel ...
Hello,. I'm glad to notify you that intel python 2020 update 2 released recently. we had verified the Spyder IDE (conda install spyder...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found