I'm trying to install Spyder using pip install spyder
on macOs Sierra with brewed python 2.7.
When launching spyder I get the following error:
File "/usr/local/bin/spyder", line 11, in
sys.exit(main())
File "/usr/local/lib/python2.7/site-packages/spyder/app/start.py", line 103, in main
from spyder.app import mainwindow
File "/usr/local/lib/python2.7/site-packages/spyder/app/mainwindow.py", line 49, in
requirements.check_qt()
File "/usr/local/lib/python2.7/site-packages/spyder/requirements.py", line 39, in check_qt
import qtpy
File "/usr/local/lib/python2.7/site-packages/qtpy/__init__.py", line 125, in
raise PythonQtError('No Qt bindings could be found')
qtpy.PythonQtError: No Qt bindings could be found
I tried the following:
brew update
brew install pyqt
Which fails with:
qt:
This formula either does not compile or function as expected on macOS
versions newer than El Capitan due to an upstream incompatibility.
Error: An unsatisfied requirement failed this build.`
I'm able to do: brew install pyqt5
, but Spyder is still failing with the same error.
pip install pyqt5
fails with
Collecting pyqt5
Could not find a version that satisfies the requirement pyqt5 (from versions: )
No matching distribution found for pyqt5
The same goes for pip install pyqt
.
From your release site I see that you have only compiled a dmg file for Python 3.5. I'm I correct when assuming that brewed Spyder does no longer work on Sierra with Python 2.7 (since qt4 support has been removed by brew), or is there something I can do to make it work?
Ok. This seems to fix this issue:
brew install pyqt5 --with-python --without-python3
Most helpful comment
Ok. This seems to fix this issue:
brew install pyqt5 --with-python --without-python3