Python Script Hashplings

Devyn Collier Johnson devyncjohnson at gmail.com
Sat Jul 27 01:33:10 CEST 2013


On 07/26/2013 10:14 AM, Chris Angelico wrote:
> On Fri, Jul 26, 2013 at 2:53 PM, MRAB <python at mrabarnett.plus.com> wrote:
>> If you want to test what would happen if that version wasn't installed,
>> set the shebang line to a future version, such as Python 3.4. I doubt
>> you have that installed! :-)
> Be careful, some people DO have a python3.4 binary :) Go for 3.5 for a
> bit more reliability.
>
> rosuav at sikorsky:~$ python3.4
> 3.4.0a0 (default:da7d97ca1ef6, Jul 13 2013, 14:05:08)
> [GCC 4.7.2]
>
> ChrisA

Thank you everyone for your comments and suggestions. I made a script to 
test the question. see for yourself:

SCRIPT:

#!/usr/bin/env python3.5
import sys; print(sys.version)


OUTPUT IN TERMINAL:

collier at Nacho-Laptop:~$ ./test.py
/usr/bin/env: python3.5: No such file or directory


Mahalo,

DCJ



More information about the Python-list mailing list