How can i fix qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "" error?

Gokalp Alkan 1 Reputation point
2022-03-01T16:31:56.947+00:00

Whenever i write a code using pyqt5 to create a window and run through the terminal of VS Code i get this error message and it won't work:

qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

How can i solve this problem? I used different versions of python and the module but got the same results. But when i tried to run the same code on a different computer,it ran without a problem.

Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yi E Wang 646 Reputation points
    2022-03-15T08:37:26.737+00:00

    Hi,

    Based on your description, problem happens on self-developed/write code/script. It is beyond the support scope of Windows-10 forum as it is not Windows system/built-in issue.

    If possible, we would recommend you to post on windows dev forum and they may provide you suggestion about your code, or test the code operation & compatibility:
    https://developer.microsoft.com/en-us/

    Or, you may post new thread with tag (including key word such as vs) to invite dev professional to your thread discussion.

    Best Regards,
    Eve Wang

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.