I have two python scripts in the same folder that I am trying to run in a Github Codespace.
I used which python3
and my output is /opt/python/<python version>/bin/python3
. I am using the symlink stable
instead of <python version>
to make my scripts a bit more installation agnostic.
When I add the she-bang #!/opt/python/stable/bin/python3
to one of my files, everything is executed as expected, but when I use the same she-bang on a different file in the same directory, it doesn't work and I get the following error:
bad interpreter: no such file or directory
Any ideas? I can't seem to find much about this behavior online.