【发布时间】: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频道。
标签: python anaconda conda spyder anaconda3