Error "could not find or load the Qt platform plugin windows" while using matplotlib in pycharm

concept of error
error thesaurus
error definition in computer
error definition chemistry
types of error
how to pronounce error
what is error and types of error
error formula

I am getting the error "could not find or load the Qt platform plugin windows" while using matplotlib in PyCharm.

How can I solve this?

I had the same problem with Anaconda3 4.2.0 and (64-bit). When I tried to run a simple program that uses matplotlib, I got 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 didn't fix it.

What helped was this (found here): Look for the Anaconda directory and set the Library\plugins subdir (here c:\ProgramData\Anaconda3\Library\plugins) as environment variable QT_PLUGIN_PATH under Control Panel / System / Advanced System Settings / Environment Variables.

After setting the variable you might need to restart PyCharm, if the change does not have an immediate effect.

Et voilà!

Update: Even though after that the command line Python worked, TexWorks (which uses Qt as well) displayed an error message very much like it. Setting the QT_PLUGIN_PATH to the directory containing TexWorks' Qt DLLs (here C:\Users\chris\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\x64) fixed the problem for both programs.

Error, error, mistake, and blunder mean an act or statement that is not right or true or proper. error is used for failure to follow a model correctly. There was an error in the  Click Start, type Windows update in the search box, and then click Windows Update in the Programs list. In the left pane, click Change settings, select Never check for updates, and then select OK. Restart the computer. After the computer restarts, download KB4523206 using the links under Method 2 in that article.

I found that this was being caused by having the MiKTeX binaries in my PATH variable; and the wrong Qt dll's were being found. I just needed to re-arrange the PATH entries.

(Dependency Walker is such a useful tool.)

Error, Error definition, a deviation from accuracy or correctness; a mistake, as in action or speech: His speech contained several factual errors. See more. 49 synonyms of errors from the Merriam-Webster Thesaurus, plus 66 related words, definitions, and antonyms. Find another word for errors.

I had a similar problem with PyCharm where things worked great in main run but not in debugger, getting the same error message. This happened for me because I had moved my Anaconda installation to a different directory. The debugger goes and checks a qt.conf file that is located at the same place as python. This location can be found by running import sys; print sys.executable. I found this solution through a pile of web searches and it was buried deep here. The qt.conf file needs to have correct paths for debugger to work.

My qt.conf files looks like this in notepad:

Prefix = E:/python/Anaconda3_py35/Library
Binaries = E:/python/Anaconda3_py35/Library/bin
Libraries = E:/python/Anaconda3_py35/Library/lib
Headers = E:/python/Anaconda3_py35/Library/include/qt

ERROR, error meaning: 1. a mistake: 2. a wrong decision: 3. to understand that you were wrong to behave in a particular…. Learn more. In error definition is - not correct : mistaken. How to use in error in a sentence.

If installed PyQt5 and PySide2, I solved problem

Copy the following files




Error, Error objects are thrown when runtime errors occur. The Error object can also be used as a base object for user-defined exceptions. See below for standard  Because @@ERROR is cleared and reset on each statement executed, check it immediately following the statement being verified, or save it to a local variable that can be checked later. Use the TRYCATCH construct to handle errors. The TRYCATCH construct also supports additional system functions (ERROR_LINE, ERROR_MESSAGE, ERROR_PROCEDURE

I tried the following in Anaconda prompt, and it solved this problem:

conda remove qt

conda remove pyqt

conda install qt

conda install pyqt

Error Synonyms, Error Antonyms, Synonyms for error at with free online thesaurus, antonyms, and definitions. Find descriptive alternatives for error.   The following table lists the most common upgrade and installation errors and some things you can try to fix them. If you continue having problems upgrading or installing Windows 10, contact Microsoft support.

error, NounEdit. error (countable and uncountable, plural errors). (uncountable) The state, quality, or condition of being wrong. quotations ▽. 1913, The Inland printer:​. Example: Sam does an experiment to find how long it takes an apple to drop 2 meters. The theoretical value (using physics formulas) is 0.64 seconds.. But Sam measures 0.62 seconds, which is an approximate value.

error, error meaning, definition, what is error: a mistake: Learn more. You can use the IFERROR function to trap and handle errors in a formula. IFERROR returns a value you specify if a formula evaluates to an error; otherwise, it returns the result of the formula.

Error (Java Platform SE 8 ), An Error is a subclass of Throwable that indicates serious problems that a reasonable application should not try to catch. Most such errors are abnormal  Percent error is the difference between an approximate or measured value and an exact or known value. Here is how to calculate percent error.

  • Provide more information.
  • I have uploaded the screenshot .
  • I've changed the title and added the pycharm tag.
  • Have a look at:…. Otherwise try the advise in the message: "Reinstalling the application may fix this problem."
  • great fix! But this fix created the same error for another software I had also needing Qt; so I have to recreate-it each time. Don't know if there is a way to avoid this.
  • Yes! I installed both PyQt5 and PySide2, and this actually solved my problem!
  • This side-steps the problem, but this is a useful solution for some that should not be overlooked given the flexibility of matplotlib!
  • Please post some code snippets here instead of just giving a link.
  • Added code snippet as per standards. Please let me know if anything more I should add to answer(the first answer so, any help will be appreciated). Thank You. @mate00
  • This has already been referred to in another answer of this question