There must be something else going on. If they are retained eye caps, they must've gotten infected. If so, then probably all is lost for the snake. If it's not so, you can quite easily remove the eye caps, and then you'll probably just have to nurture the snake back to health.

However, it sounds like this little guy is in pretty bad state.