0

It looks like there is more than one Python installed on my mac. Modules installed are not recognized by python interpreter (2.7.6) until I add them to PYTHONPATH.

Could anyone show me how I can locate all the Pythons installed on my mac?

Thank you

user3562812
  • 1,751
  • 5
  • 20
  • 30

3 Answers3

0

As per python location on mac osx, running the command by the user asking the question should give you any locations python is installed to. If this command returns multiple locations, you can follow the steps in the chosen answer to get the versions.

Community
  • 1
  • 1
Jonathan Holland
  • 607
  • 9
  • 18
0

The article below might be helpful. It might give you an idea.

http://www.cyberciti.biz/faq/find-python-version/

0

you can use which python command to find what python you are using. This gives the output as path to symlink, you can find the original python by reading the symlink.

venpa
  • 4,268
  • 21
  • 23