Spyder 5.0.5 (MacOS) 上没有 Spyder 终端
Posted
技术标签:
【中文标题】Spyder 5.0.5 (MacOS) 上没有 Spyder 终端【英文标题】:No Spyder-Terminal on Spyder 5.0.5 (MacOS) 【发布时间】:2021-10-17 23:37:39 【问题描述】:我试图在我的 spyder 上安装 spyder 终端。
我遵循的步骤(在 iPython 控制台中):
!conda install -c conda-forge spyder-terminal
然后:
import spyder_terminal
我收到一条错误消息:
No QCoreApplication instance found. Application patches not applied. You have to call load_stylesheet function after instantiation of QApplication to take effect.
Traceback (most recent call last):
File "<ipython-input-2-fb5605fc26a6>", line 1, in <module>
import spyder_terminal
File "/opt/anaconda3/lib/python3.8/site-packages/spyder_terminal/__init__.py", line 10, in <module>
from .terminalplugin import TerminalPlugin as PLUGIN_CLASS
File "/opt/anaconda3/lib/python3.8/site-packages/spyder_terminal/terminalplugin.py", line 17, in <module>
from spyder.api.plugin_registration.decorators import on_plugin_available
ModuleNotFoundError: No module named 'spyder.api.plugin_registration'
我以为是环境的原因,所以我尝试用spyder终端模块创建一个新的conda环境。我执行以下操作(在我的终端中):
conda create -n spyder-env -y
然后:
conda activate spyder-env
最后:
conda install spyder-kernels spyder-terminal -y
我收到一条错误消息:
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- spyder-terminal
Current channels:
- https://repo.anaconda.com/pkgs/main/osx-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/osx-64
- https://repo.anaconda.com/pkgs/r/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
知道我可以做些什么来获得 spyder 终端吗?
规格:
Spyder 5.0.5 Anaconda 2.0.4 MacOS 大苏尔 11.4【问题讨论】:
第二个命令中仍然需要conda-forge
频道。
【参考方案1】:
Spyder-terminal 尚未更新为可与 spyder 5.0.5 一起使用。见这里:No Terminal in Spyder 5 despite installing Spyder-Terminal
【讨论】:
以上是关于Spyder 5.0.5 (MacOS) 上没有 Spyder 终端的主要内容,如果未能解决你的问题,请参考以下文章
在 MacOS 上安装 Spyder/Python - 非常令人沮丧