Below you will find pages that utilize the taxonomy term “fedora”
November 1, 2022
Shebang issue - Ubuntu does not link 'python' to 'python3' by default
I typically use #!/usr/bin/env python as my shebang for Python stuff. I switched to Ubuntu (22.04) from Fedora (36) recently and found that when I tried to run something outside of a virtualenv it bombed out thusly:
/usr/bin/env: ‘python’: No such file or directory This stackoverflow post offered two solutions:
sudo ln -s /usr/bin/python3 /usr/bin/python
sudo apt install python-is-python3
The post that presented the latter pointed me at the package’s description: