user1893148
user1893148

Reputation: 2190

How to Tell What Installation of Python Terminal is Calling

I am trying to run a python script in Automator, and need to specify the installation of python to be used. I would like to use whatever is used by default by my terminal. How can I enter a command into terminal to be told what installation / path for python terminal is using?

Thanks.

Upvotes: 0

Views: 46

Answers (1)

Martijn Pieters
Martijn Pieters

Reputation: 1124278

  • which python will tell you what command is found on the path first; which -a python will list all Python commands found on your path. See the which manpage for more details.

  • python -V will tell you what the version is for that command.

Upvotes: 3

Related Questions