我非常沮喪。看來我不明白這個安裝的一個非常基本的概念,並且找不到答案。在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
由於我打倒了票,這將有助於瞭解原因。 –