I had the same problem with Anaconda3 4.2.0 and 4.3.0.1 (64 bit). When I tried to run a simple program that uses matplotlib, I received this error message:
This application failed to start because it could not find or load the Qt platform plugin "windows" Reinstalling the application may fix this problem.
Reinstalling did not fix this.
The following helped (found here ): find the Anaconda directory and set the Library\plugins
subdirectory (here c:\ProgramData\Anaconda3\Library\plugins
) as the QT_PLUGIN_PATH
environment QT_PLUGIN_PATH
in Control Panel / System / Advanced system settings / Environment variables,
After setting the variable, you may need to restart PyCharm if the change has no immediate effect.
And voila!
Update: Despite the fact that the Python command line worked after this, TexWorks (which also uses Qt) gives an error message very similar to this. Setting QT_PLUGIN_PATH
to a directory containing the Qt libraries of the TexWorks library (here C:\Users\chris\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\x64
) fixed the problem for both programs.
source share