Anaconda not launching

I cannot start anaconda navigator or spyder (but anaconda prompt does work).

I have described the issue here: anaconda3 - Anaconda not launching - Stack Overflow

please help

1 Like

dear d.bodor.

thank you for your posting.
The cause is simple, because pyQt cannot call the Qt5 library.
To solve this problem, you need to download the Qt source code from the URL below and build it correctly.

Currently, Qt5 used by anaconda-navigator has been confirmed to work up to windows8 and windows10, but it has not been confirmed otherwise.

It may take some time, but try running a Qt5 build.

Regards, you.
ktsh.tanaka.2020

If it’s not windows8 or windows10, it’s a good idea to reinstall it.
However, if that is difficult, there is a way to create a virtual environment and reinstall anacoda.

At that time, it is necessary to confirm that it can operate on the guest OS.

Please check each method for details.

I am on Windows 11

I just finished installing PyQT5 (the TryQT version) and then uninstalled and reinstalled Anaconda3, but still no dice.

Ok, so I did pip install pyqt5-tools, which gave the following result:

ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
spyder 5.1.5 requires pyqtwebengine<5.13, which is not installed.
spyder 5.1.5 requires pyqt5<5.13, but you have pyqt5 5.15.4 which is incompatible.
Successfully installed PyQt5-Qt5-5.15.2 PyQt5-sip-12.11.0 click-7.1.2 pyqt5-5.15.4 pyqt5-plugins-5.15.4.2.2 pyqt5-tools-5.15.4.3.2 python-dotenv-0.21.0 qt5-applications-5.15.2.2.2 qt5-tools-5.15.2.1.2

after that I did conda update spyder, which i hoped would fix above error.

now I can run the anaconda navigator, but still not Spyder.

trying to run spyder from anaconda prompt or navigator results in this error:

Traceback (most recent call last):
File “C:\Users\DaniBodor\anaconda3\lib\site-packages\qtpy\QtWebEngineWidgets.py”, line 21, in
from PyQt5.QtWebEngineWidgets import QWebEnginePage
ImportError: DLL load failed while importing QtWebEngineWidgets: The specified procedure could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “C:\Users\DaniBodor\anaconda3\Scripts\spyder-script.py”, line 10, in
sys.exit(main())
File “C:\Users\DaniBodor\anaconda3\lib\site-packages\spyder\app\start.py”, line 233, in main
from spyder.app import mainwindow
File “C:\Users\DaniBodor\anaconda3\lib\site-packages\spyder\app\mainwindow.py”, line 59, in
from qtpy import QtWebEngineWidgets # analysis:ignore
File “C:\Users\DaniBodor\anaconda3\lib\site-packages\qtpy\QtWebEngineWidgets.py”, line 27, in
from PyQt5.QtWebKitWidgets import QWebPage as QWebEnginePage
ModuleNotFoundError: No module named ‘PyQt5.QtWebKitWidgets’

1 Like

dear d.bodor.

thank you for your reply.

In order to import Qt and pyQt successfully, it is necessary to set environment variables respectively.

It starts when you install Qt and build pyQt.

In most cases, pip install pyQt5 will do.

However, if python is already installed on the Windows side and anaconda is also installed, the python installed on the windows side becomes effective, and anaconda often does not work well.

At that point, you will need to make a decision.

  1. Decide not to use anaconda and build a similar environment with pip.
  2. Decide to use anaconda and disable (i.e. remove) the python installed on your system.

It’s very annoying, but please try to use it as a reference.

Regards, you.
ktsh.tanaka.2020

I got it to work in the end. Can’t be sure what exactly did the trick, but I at least did a
pip install PyQtWebEngine
(note that I tried to conda install that first, but that led to hours and hours of analyzing conflicts, after which I think it crashed).

It gives this error>

ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
spyder 5.1.5 requires pyqt5<5.13, but you have pyqt5 5.15.4 which is incompatible.
spyder 5.1.5 requires pyqtwebengine<5.13, but you have pyqtwebengine 5.15.6 which is incompatible.

Then I did conda update spyder and after that I could run it.

A few other things did happen in the mean time and can’t retrace all my steps anymore, so not sure if this is the entire solution, but it is at least part of it.

1 Like

dear d.bodor

thank you for your reply.

It seems that there are some problems, but I sincerely appreciate that you have solved them by yourself.

It is true that open source distributions are prone to various problems due to differences in PC and server settings.

However, it is also our destiny to rely on error codes and accumulate know-how while solving them.

I would like to express my sincere gratitude for making anaconda work safely on windows11.

Regards, you.
ktsh.tanaka.2020