When running the file, prompt:
This Application failed to start because it could not find or load the Qt Platform plugin “Windows”.
Reinstalling the application may fix this problem.
solution:
1. Comment out the code related to matplotlib and find that the above error disappears, indicating that there is a problem with the package matplotlib, re-install

2 in conda environment. This Application failed to start because it could not find or load the Qtplatform Plugin… The version is too low, Upgrade pytorch
enter the anaconda prompt
activate environment
conda activate pytorch
to upgrade
PIP install --upgrade pytorch torchvision
to wait for installation
conda install pytorch torchvision-c pytorch
Read More:
- Solution: Solving Environment: failed with initial frozen solve. Retrying with flexible solve
- Installation of Python on MAC
- Anaconda builds a new environment and installs sklearn, numpy and other modules
- Package summary of installing python with CONDA
- Anaconda + vscode usage problem summary
- python: This application failed to stat could not find or load the Qt platform plugin “windows”
- Configuration (9) to solve the problem of “setup tools PIP wheel failed with error code 1”, create virtual environments with Python of anaconda
- (Solved) pytorch error: RuntimeError: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED (install cuda)
- Import any QT binding error during installation of evo
- An error occurred when installing pytorch version 1.7 GPU
- ImportError: numpy.core.multiarray failed to import
- After canceling the startup of Ubuntu terminal, it will automatically enter the base environment of CONDA
- CONDA upgrade command: upgrade CONDA, anaconda and various packages
- CONDA reports an error: conflict package conflict
- CONDA creating virtual environment and common CONDA commands
- CONDA failed to create environment (collecting package metadata(repodata.json): failed)
- Solving attributeerror: module ‘Matplotlib’ has no attribute ‘artist’
- Pysot installation and model testing
- Solving environment: failed solution to the problem encountered when updating Anaconda
- How to Fix error reported by rqt_plot tool in ROS