I normally run python scripts like this
python script.py or
./script.py
python is found in /mnt/onboard/.python
the executable is in /usr/bin
if i run you example ( ./python2.7 ./pip install pyserial )
It doesn't work because I don't have pip
but I can run this but get error ??? see below
[root@(none) bin]# python install pyserial
File "install", line 1
SyntaxError: Non-ASCII character '\xa0' in file install on line 2, but no encodi
ng declared; see
http://www.python.org/peps/pep-0263.html for details
[root@(none) bin]#