Python Spyder 未启动

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/51125462/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 19:44:46  来源:igfitidea点击:

Spyder Not Launching

pythonanacondaspyder

提问by user1581390

I have two environments in which spyder just doesn't want to launch. I click the icon there is a waiting cursor then nothing happens. One of the two is totally new that I just made today. After installing some packaged (pip install pytrends was the last one) it stopped opening.

我有两个环境,其中 spyder 只是不想启动。我单击图标有一个等待光标然后什么也没有发生。两者之一是我今天刚做的全新的。安装一些打包后(pip install pytrends 是最后一个)它停止打开。

Note: the general spyder at: C:\ProgramData\Anaconda3\Scripts\spyder.exe does launch, but not the one for the environments.

注意:位于 C:\ProgramData\Anaconda3\Scripts\spyder.exe 的通用 spyder 确实会启动,但不是针对环境的。

enter image description hereenter image description here

在此处输入图片说明在此处输入图片说明

回答by user1581390

This solves the problem:

这解决了这个问题:

conda upgrade qt

回答by Sayali Sonawane

I was not able to launch Spyder and Jupyter notebook from anaconda environment (Mac OS).

我无法从 anaconda 环境 (Mac OS) 启动 Spyder 和 Jupyter notebook。

Following command worked for me:

以下命令对我有用:

conda uninstall tornado
conda install tornado==4.5.3 

Just uninstall tornadoand reinstall it.

只需卸载tornado并重新安装它。

回答by Vaibhav K

Just try this :

试试这个:

  1. uninstall pyQt using
  1. 使用卸载 pyQt

conda uninstall pyqt

conda uninstall pyqt

  1. uninstall sip package
  1. 卸载 sip 包

conda uninstall sip

conda uninstall sip

  1. then install these packages in following order
  1. 然后按以下顺序安装这些包

conda install sip

conda install sip

conda install pyqt

conda install pyqt

conda upgrade spyder

conda upgrade spyder

this worked for me.

这对我有用。

回答by CHIRAG SAHU

I had faced a similar issue while running spyder from the anaconda navigator or the conda terminal. To overcome this issue you just need to follow some simple steps.

从 anaconda 导航器或 conda 终端运行 spyder 时,我遇到了类似的问题。要解决这个问题,您只需要遵循一些简单的步骤。

  1. open the anaconda navigator. ( You can also use anaconda prompt and type "anaconda-navigator" at the console)

  2. Open the application and then follow the steps as shown in the image. here we are creating a new environment with a python of version 3.6. I think the 3.7 version is unstable and doesn't work properly. It worked for me, hope for you too !!!

  1. 打开 anaconda 导航器。(您也可以使用 anaconda prompt 并在控制台输入“anaconda-navigator”)

  2. 打开应用程序,然后按照图像中所示的步骤操作。在这里,我们正在使用 3.6 版的 python 创建一个新环境。我认为 3.7 版本不稳定,无法正常工作。它对我有用,希望对你也有用!!!

see the image hereand follow the steps.

此处查看图像并按照步骤操作。

it will take some time to download resources to set up the environment for the first time.

第一次设置环境需要下载资源,需要一些时间。

after following the steps launch the application. Make sure to run the environment first to be able to launch the application.

按照步骤启动应用程序后。确保首先运行环境才能启动应用程序。

回答by Hamdan Hejazi

This problem is solved in the newest version of conda. Currently it is on the conda canary channel, you can get it by running conda update conda -c conda-canary

这个问题在最新版本的 conda 中得到了解决。目前它在 conda canary 频道上,您可以通过运行 conda update conda -c conda-canary 来获取它

Reference

参考

回答by Nima Gerami Seresht

For me the outdated library was spyder.kernel. The best solution is to open a new python environment (just input 'py' in command line to build a new environment) and run the following script and it tells you what library is missing or outdated:

对我来说,过时的库是 spyder.kernel。最好的解决方案是打开一个新的python环境(只需在命令行中输入'py'来构建一个新环境)并运行以下脚本,它会告诉您哪些库丢失或过时:

from spyder.app import start
start.main()