When running your scripts, are you using
$ python filename.py
or are you relying on the shebang by using
Your error sounds like you are using the wrong shebang, and thus coming up with the wrong interpreter. I usually use
The command which python
will tell you exactly where your interpreter is located.
Also, for future reference, you can use apt to install python in DSL:
$ sudo dpkg-restore
$ sudo apt-get update
$ sudo apt-get install python
There should be a way to install it via DSL's own tools, but I've never taken the time to learn how.