AttribureError: 'LP_GLFWwindow' object has no attribute 'set_mouse_visible'

Thank you for your replying, but I have found the solution. The solution to my problem is:

Go to file -> preferences -> window type -> set pyglet (on my version the ‘glfw’ was by default), and voula!