Syntax errors when running hello world script

Panda3D comes with a copy of Python already, so there is no need to install another copy.
This is probably what is wrong, but you should post the error that you get, otherwise it is not possible to know what the problem is for sure.