Getting Syntax error for any kind of python library import

If I use virtual env then everything is fine
But if I run simply then getting getting syntax error
anyone, please help
Thanks in advance

maybe your vm has your python install but not your actual windows os?
You can try to check if the libraries are installed or not.
Here’s a post about how to do that how can I see my installed libraries in python ? - Stack Overflow