5 ms·
#!/usr/bin/env python3.7
by fctorial 7y ago
#!/usr/bin/env python3.7
- gruez 7y agoso now you have to install a specific python version for your script to work?
- fctorial 7y agoOnly if you're using version specific features.
- jakear 7y agoWhat happens when python 3.8 comes out? Everybody needs to go into your script to change the hashbang every time a new release comes?
- sgillen 7y agoyou can just hashbang to python3 which is a symlink to whichever python3.X the user has. If your code won’t work for older versions you can make an explicit check that the version of python is greater than whatever you need.