Here is my environment
> lsb_release -a
LSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: Scientific
Description:    Scientific Linux release 6.8 (Carbon)
Release:        6.8
Codename:       Carbon
> /home/ktew/python/bin/python --version
Python 2.7.18
I have added the following line as the first line in my python script.
#!/home/ktew/python/bin/python
The python script is executable.
-rwxrwxrwx 1 ktew ktew   12753 Sep 23 10:35 compare_trims_by_version_5.py*
This line of command is working well.
/home/ktew/python/bin/python compare_trims_by_version_5.py
However, Command not found when I run it.
> ./compare_trims_by_version_5.py
./compare_trims_by_version_5.py: Command not found.
 
    