0

I have the anaconda python install on my mac and I already set the path for it. When I type in python in the terminal, it opens the anaconda python as intended. But when I use a command like "./file.py", the original apple python is used. How can I change it so that it would run with anaconda python as well?

user3727864
  • 41
  • 2
  • 5

1 Answers1

2

What is the shebang at the top of the file?

If it's /usr/bin/python, it'll always use system python.

If it's /usr/bin/env python, it will use whichever python binary is highest on the PATH.

Community
  • 1
  • 1
Steven Kryskalla
  • 14,179
  • 2
  • 40
  • 42