Spyder: update spyder4

Created on 12 Dec 2019  ·  9Comments  ·  Source: spyder-ide/spyder

@yuvipanda
i have update the anoconda to the latest version(1.9.7) on windows10, but i still can not to update spyder to 4.0. However, i can use spder 4.0 on ubunto16.04 when i use the anoconda navigator1.9.7.
I have followed the issuse 10964, but i meet a new
QQ截图20191212135911
and if i copy the Anaconda/DLLS/libssl-1_1-x64.dll to Anaconda/Library/bin, i can install the spyder4.0. But when i start it, i come into that:

Traceback (most recent call last):
File "D:\Progran_file\Anaconda3\envs\py1_2\lib\site-packages\spyder\app\mainwindow.py", line 3711, in main
mainwindow = run_spyder(app, options, args)
File "D:\Progran_file\Anaconda3\envs\py1_2\lib\site-packages\spyder\app\mainwindow.py", line 3552, in run_spyder
main.setup()
File "D:\Progran_file\Anaconda3\envs\py1_2\lib\site-packages\spyder\app\mainwindow.py", line 1010, in setup
from spyder.plugins.ipythonconsole.plugin import IPythonConsole
File "D:\Progran_file\Anaconda3\envs\py1_2\lib\site-packages\spyder\plugins\ipythonconsole\plugin.py", line 52, in 
from spyder.plugins.ipythonconsole.widgets import ClientWidget
File "D:\Progran_file\Anaconda3\envs\py1_2\lib\site-packages\spyder\plugins\ipythonconsole\widgets\__init__.py", line 16, in 
from .debugging import DebuggingWidget
File "D:\Progran_file\Anaconda3\envs\py1_2\lib\site-packages\spyder\plugins\ipythonconsole\widgets\debugging.py", line 22, in 
from IPython.core.inputtransformer2 import TransformerManager
ModuleNotFoundError: No module named 'IPython.core.inputtransformer2'

So how can i solve it?
looking for you reply.

Most helpful comment

I had this problem, if you have this message you need to update your IPython by doing :
conda update IPython
If you have several environment, just precise the environment you installed spyder :
conda update IPython -n (envname)

All 9 comments

用Anaconda搞个新的虚拟环境,同时安装spyder就行了,我就是这么搞的
conda create -n python37 python=3.7 spyder=4.0

It looks like you need to reinstall Anaconda because your current installation is broken.

Unfortunately I don't think it's an uncommon case.
Recently I tried to update Anaconda and then Spyder from 3 to 4 on two different machines and in both of them Spyder stopped working with this error. I think either Anaconda or Spyder "updater" is broken... But I'm not an expert. Just raising my hand.

It's usually better to use a new conda env to try major Spyder versions, instead of updating things in the base env.

I have the same problem, I used pip to install the new update, i'm on Linux Mint and a beginner in Linux.

If you're beginner please use Anaconda. Pip is for experts or very knowledgeable people.

I had this problem, if you have this message you need to update your IPython by doing :
conda update IPython
If you have several environment, just precise the environment you installed spyder :
conda update IPython -n (envname)

I have this issue. Spyder in the base environment works fine with spyder kernels in a virtual environment. It does not work with spyder kernels in a different virtual environment.

spyder-kernels in both environments is 1.9.4 which is very strange.

For whoever else runs into this unfortunate scenario, after trying to fix my environment to no avail... it was just easier to create a new environment as @leavor suggested:
conda create -n python37 python=3.7 spyder=4.0
Not sure if there's an issue with the most recent version of spyder or Python but I can confirm Python 3.7 and spyder 4.0 work together.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marianux picture marianux  ·  3Comments

cchu08 picture cchu08  ·  3Comments

hedeqing picture hedeqing  ·  3Comments

spyder-bot picture spyder-bot  ·  3Comments

ok97465 picture ok97465  ·  3Comments