Spyder: Spyder wont open after update using pip to 3.0.2

Created on 28 Nov 2016  路  4Comments  路  Source: spyder-ide/spyder

Updated from Spyder 3.0.0 to 3.0.2 on windows 7 using pip:

python -m pip install -U spyder

Update seemed to be successful, but when I then tried to open Spyder I have this error message flash for half a second:

C:\Program Files\WinPython-64bit-3.4.3.6\python-3.4.3.amd64\python.exe: Error while finding spec for 'spyderlib.start_app' <: No module named 'spyderlib'>

This error message flashes in a window like the command prompt window, the black box with white text. It disappears so fast the only way I could view it was to hit the print screen key the moment after I try to open it and paste the image in word.

Versions and main components

  • Spyder Version: 3.0.2
  • Python Version: 3.4.3
  • Operating system: WIndows 7

Dependencies

Please go to the menu entry Help > Optional Dependencies (or
Help > Dependencies), press the button Copy to clipboard
and paste the contents below:

Sorry I am not super computer savvy so not sure what the dependencies section is asking me to do. I have searched google for my error without any luck.

Cheers

Most helpful comment

old winpython versions were launching spyder via its former spyderlib directory.
unless copying spyder icon and associated script from a newer winpython, you can't fix it.

or create a "scripts\spyder.bat" batch with inside:
@echo off call "%~dp0env.bat" "%WINPYDIR%\scripts\spyder.exe" %*
and use it in place of unfixable icon

All 4 comments

I tried running 'python -m pip install -U spyder' again in the command prompt but it just says 'Requirement already up-to-date for everything.
Also tried 'python -m pip install spyderlib' but after executing I got the following:
Collecting spyderlib
Could not find a version that satisfies the requirement spyderlib No matching distribution found for spyderlib

This seems a problem with WinPython. Any clues @stonebig?

old winpython versions were launching spyder via its former spyderlib directory.
unless copying spyder icon and associated script from a newer winpython, you can't fix it.

or create a "scripts\spyder.bat" batch with inside:
@echo off call "%~dp0env.bat" "%WINPYDIR%\scripts\spyder.exe" %*
and use it in place of unfixable icon

Thank you SOOOO much ccordoba12 and stonebig, that solve the issue a treat!

For anyone else that has the issue, based on stonebigs recommendations I went into:

C:\Program Files\WinPython-64bit-3.4.3.6\scripts to find a file called spyder.bat

I right clicked on it, clicked edit and paste:

@echo off
call "%~dp0env.bat"
"%WINPYDIR%\scripts\spyder.exe" %*

As stonebig said. Then double clicking spyder.bat opened spyder.

Finally I created a shortcut of spyder.bat on my desktop.

Was this page helpful?
0 / 5 - 0 ratings