Cannot run Spyder because No module named 'PySide'

情到浓时终转凉″ 提交于 2019-12-04 05:51:52

问题


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?


回答1:


try below commands let me know if it works.

 pip install msgpack
 conda install qt=5.6 pyqt=5.6 sip=4.18



回答2:


Mr J.

I had the same problem as Doug Fir. I used these commands. I launched spyder from the DOS prompt. I got "RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa" as was the case before. Just as I was rolling my eyes, Spyder went ahead and started. So I think it worked.



来源:https://stackoverflow.com/questions/51317382/cannot-run-spyder-because-no-module-named-pyside

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!