我非常沮丧。看来我不明白这个安装的一个非常基本的概念,并且找不到答案。在mac上为python3安装spyder
正如标题所示,我想在我的Mac上为python3安装spyder。因为我找不到任何简单的安装,只需点击一下即可。
在mac上预装了python 2.7,我已经安装了python3,这很简单。
所以我开始在命令行中输入sudo easy_install pip
来安装pip
。然后我跟着this site的介绍,其基本上说是输入pip install -U spyder
这导致了最后的错误。我意识到我必须使用pip3
,因为我有两个python版本。为什么没有提到这个?无论如何,这工作 - 至少它没有触发一个错误。但是,现在我很困惑应用程序在哪里?我现在如何使用Spyder?
任何帮助表示赞赏。
编辑 当我变成到文件夹仓突然终端回应spyder3
但结果却
Nathanaels-iMac:bin nathanaelskrepek$ spyder3
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/qtpy/__init__.py", line 148, 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 "/Library/Frameworks/Python.framework/Versions/3.6/bin/spyder3", line 11, in <module>
sys.exit(main())
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/spyder/app/start.py", line 144, in main
from spyder.app import mainwindow
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/spyder/app/mainwindow.py", line 49, in <module>
requirements.check_qt()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/spyder/requirements.py", line 39, in check_qt
import qtpy
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/qtpy/__init__.py", line 154, in <module>
raise PythonQtError('No Qt bindings could be found')
qtpy.PythonQtError: No Qt bindings could be found
由于我打倒了票,这将有助于了解原因。 –