Open spyder in ubuntu

女生的网名这么多〃 提交于 2019-12-04 19:54:06

问题


I want to open spyder(Python IDE) in ubuntu.

Normally I would write "spyder" in the shell, and it would open the spyder IDE.

Now when I write spyder in the shell, it just new lines, and nothing happens(similar to pressing 'enter').

--- How do I get my spyder back?

EDIT - I get no errors, it just skips to the next line.


回答1:


If typing "spyder" doesn't work, you might want to try typing "spyder3" in case you installed the spyder3 version. Below is what worked for me in my Ubuntu system.

To install spyder via pip (my python version is 3.6.2), I used:

 pip install spyder

Then, I had to install another package:

 pip install PyQtWebEngine

Finally, to open the Spyder window, I typed into my terminal:

 spyder3



回答2:


You may simply have to update spyder.

If you are NOT using anaconda:

pip install --update spyder

Or, if you are in anaconda:

conda update spyder

I had the same issue as yours, with also a message in the command line saying:

Spyder is already running. If you want to open a new 
instance, please pass to it the --new-instance option

The above update allowed me to open spyder from the command line.




回答3:


I had this problem as well, and found this post on it in an askubuntu forum. It suggested using sudo apt-get purge spyder to delete any faulty configuration files and then reinstall with sudo apt-get install spyder. I found it worked, and spyder reopened with my previous files on the text editor.



来源:https://stackoverflow.com/questions/29077826/open-spyder-in-ubuntu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!