【发布时间】:2021-04-13 15:17:24
【问题描述】:
我想尝试使用 Spyder IDE。我正在阅读有关如何打开和运行 Spyder 的页面:https://github.com/spyder-ide/spyder/releases
我输入了页面中指定的以下命令:
conda update qt pyqt
conda update spyder
两个命令都给出了“# All requested packages already installed.”。
然后我在终端(Mac)中输入了 spyder:
Macs-MacBook:~ macuser$ spyder
Traceback (most recent call last):
File "/anaconda3/lib/python3.6/site-packages/qtpy/__init__.py", line 166, in <module>
from PySide import __version__ as PYSIDE_VERSION # analysis:ignore
ModuleNotFoundError: No module named 'PySide'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/anaconda3/bin/spyder", line 11, in <module>
sys.exit(main())
File "/anaconda3/lib/python3.6/site-packages/spyder/app/start.py", line 159, in main
from spyder.app import mainwindow
File "/anaconda3/lib/python3.6/site-packages/spyder/app/mainwindow.py", line 49, in <module>
所以,我尝试安装 PySide:
Macs-MacBook:~ macuser$ conda install PySide
Solving environment: failed
UnsatisfiableError: The following specifications were found to be in conflict:
- anaconda==5.2.0=py36_3
- pyside
Use "conda info <package>" to see the dependencies for each package.
我应该怎么做才能开始使用 Spyder?
【问题讨论】:
-
嗨,我正在使用 anaconda。我是 python 新手,但过去几天我阅读的文档和各种资源一直告诉我不要在我有 anaconda 时使用 pip。这是真的吗?
-
试试下面的命令是否可以让我知道它是否有效,您使用的是哪个操作系统? pip install msgpack conda install qt=5.6 pyqt=5.6 sip=4.18
-
谢谢!这适用于您提供的 conda 命令选项。你怎么知道使用
conda install qt=5.6 pyqt=5.6 sip=4.18?很具体 -
请标记答案,以便对其他人有用。基本上,您可以执行以下命令来了解您的机器上安装了哪个特定版本。 conda list --show-channel-urls