I put
#!/usr/bin/env python3.1
as the shebang line of a Python script. What should I change this to so when Python 4.0 is available on a machine, where this script may be run from, it will use python 4.0 instead of any particular older version?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t realistically make the script work with the next major version right now (because it’s likely to break stuff, like 2->3 update did). You can make it use any 3.x version by saying
#!/usr/bin/env python3.