【发布时间】:2018-03-27 04:54:55
【问题描述】:
我很沮丧。看来我不了解此安装的一个非常基本的概念,也找不到答案。
正如标题所说,我想在我的 Mac 上安装 spyder for python3。因为我无法通过单击某个位置找到任何简单的安装。
在 mac 上预装了 python 2.7,我已经安装了 python3,这很容易。
所以我首先通过在命令行中输入sudo easy_install pip 来安装pip。然后我跟着this site 的介绍,它基本上说要输入pip install -U spyder,最后导致错误。我意识到我必须使用pip3,因为我有两个 python 版本。为什么这里没有提到?!无论如何,这行得通——至少它没有触发错误。但是,现在我很困惑应用程序在哪里?我现在如何使用 spyder?
感谢任何帮助。
编辑
当我突然切换到文件夹 bin 时,终端回复了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
【问题讨论】:
-
因为我的投票失败了,知道原因会很有帮助。