python - What do I do if things don't run properly using Anaconda? -
i'm trying use anaconda run python software, error message when try start jupyter, spyder, or r studio. following:
the error text is:
traceback (most recent call last): file "/users/ijstokes/anaconda/envs/spyder/lib/python3.6/site-packages/qtpy/__init__.py", line 148, in pyside import __version__ pyside_version # analysis:ignore modulenotfounderror: no module named 'pyside' during handling of above exception, exception occurred: traceback (most recent call last): file "/users/ijstokes/anaconda/envs/spyder/bin/spyder", line 6, in sys.exit(spyder.app.start.main()) file "/users/ijstokes/anaconda/envs/spyder/lib/python3.6/site-packages/spyder/app/start.py", line 103, in main spyder.app import mainwindow file "/users/ijstokes/anaconda/envs/spyder/lib/python3.6/site-packages/spyder/app/mainwindow.py", line 49, in requirements.check_qt() file "/users/ijstokes/anaconda/envs/spyder/lib/python3.6/site-packages/spyder/requirements.py", line 39, in check_qt import qtpy file "/users/ijstokes/anaconda/envs/spyder/lib/python3.6/site-packages/qtpy/__init__.py", line 154, in raise pythonqterror('no qt bindings found') qtpy.pythonqterror: no qt bindings found what can fix this?
this can frustrating , there few steps can take try , resolve it. because of broken software version, , less due conflicting software or libraries on system.
update package (gui)
try update spyder (or jupyter) in navigator. see screenshot:
- select "environments"
- search "spyder"
- if update possible show blue arrow. click on this. if have latest version green checkbox.
- this green checkbox turn blue arrow
- click on "apply" button @ bottom right
- try again!
create test environment
if doesn't resolve problem try creating minimal test environment:
- select "environments"
- click on "+ create"
- give test environment name, such "mytest"
- decide version of python or r should based on.
- click on "create" button @ bottom right of dialog box
when environment creation complete, select environment , install package you're having trouble with:
- select "environments"
- select "mytest", environment created
- select "all" search scope
- search "spyder"
- click box beside package name select installation
- click on "apply" button @ bottom right
- try again!
if works you've established problem mix-up in main environment you're using. resolve you'll need refer command line "force update" strategy described below.
alternatively can create fresh environment using strategy above, include in "anaconda" package you'll have full featured set of tools.
try command line
sometimes more details regarding what's going wrong if run program command line. can command line follows:
- select "environments"
- select environment trying use (if in doubt, use
rootorbase, defaults) - select triangle/arrow
- select "open terminal"
now command line should try doing:
conda update conda conda update anaconda-navigator conda update spyder
this update spyder package (execute conda update jupyter if want update jupyter notebook)
now try run spyder executing command:
spyder
if doesn't work should have more useful information cause of problem (the command jupyter notebook jupyter notebook, space between 2 parts).
but navigator isn't working
if can't start navigator should command line (terminal.app in macos, start->cmd.exe on windows), navigate anaconda installed (often in /anaconda, $home/anaconda or /opt/anaconda) , there go scripts directory (windows) or bin directory (macos, linux). execute 3 conda commands above (for macos , linux users may need use ./conda instead of conda). once you've done that, try launching anaconda navigator command anaconda-navigator.
force package reinstall
sometimes software package, if date, can corrupted. can happen if you've blended pip install spyder or similar commands have changed conda package software. try , fix can force re-install follows:
conda install --force spyder if appears there problems of dependencies can try , force install those. exact issue listed above, fix (qt5 has been corrupted):
conda install --force qt what if you're still stuck
if @ point you're still stuck you've got enough information share people can you: stackoverflow (tagging 1 or more of #anaconda #spyder #jupyter), anaconda issue tracker or 1 of anaconda support options listed here.
when asking further advisable include:
- what wanted happen
- what happened
- the exact command executed
- the output received
- status of anaconda output
conda info -a
screenshots great gui-based operations, cut-and-paste textual.





Comments
Post a Comment