0

I work with a MacBook macOS 12 (I'm not sure this will be relevant), and I want to make python3.x my default python version, but I am not sure how to set it in the healthiest way. I don't have a problem using python3 to run the scripts but when I make the scripts executable, system tries to run it in python2, and setting the shebang to #!/usr/bin/env python3 didn't help.

If I set an alias for it (i.e. py='python3'), would it cause any trouble? What are the other ways to set python3 as default? I tried the suggestions from this post but they didn't really help.

user175924
  • 57
  • 6

0 Answers0