Ensure that PY_VERSION is set in the user's environment

This resolves the numpy version mismatch some users were seeing.

all credit to @oxtopus