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?
Asked
Active
Viewed 71 times
1 Answers
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
-
You are right. It indeed is /usr/bin/python. Thanks – user3727864 Jul 20 '15 at 03:24
-
1Great! Remember to mark the answer as accepted :) http://stackoverflow.com/help/accepted-answer – Steven Kryskalla Jul 20 '15 at 03:24