Using pip install pyrender directly will cause many problems, and may directly report an error "cannot import name 'OSMesaCreateContextAttribs' from ' OpenGL .osmesa'"
Even if the upgraded version is successfully installed and some simple graphics can be rendered, there is still a bug of missing colors as shown in the figure below
The correct installation method is to operate according to the official guide of pyrender. Note that PREFIX needs to be replaced with the installation directory