Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot run Spyder because No module named 'PySide'

Tags:

python

spyder

I wanted to try using Spyder IDE. I was reading this page on how to open and run Spyder: https://github.com/spyder-ide/spyder/releases

I typed the following commands as specified in the page:

conda update qt pyqt
conda update spyder

Both commands gave "# All requested packages already installed.".

I then typed spyder into my terminal (Mac):

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>

So, I tried to install 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.

What should I do to get up and running with Spyder?

like image 849
Doug Fir Avatar asked Jul 13 '18 03:07

Doug Fir


1 Answers

try below commands let me know if it works.

 pip install msgpack
 conda install qt=5.6 pyqt=5.6 sip=4.18
like image 53
jits_on_moon Avatar answered Sep 22 '22 21:09

jits_on_moon