OSX Automator failing to run Python script with modules from shell
问题 I am trying to run a Python script that uses a few 3rd party modules (numpy, pandas, Twython) from Run Shell Script in OSX Automator. I wrote a hello_world.py script that runs successfully so I'm certain that the problem is due to the 3rd party modules. In Terminal, I can successfully execute: python Desktop/my_folder/myscript.py , however when I try to run the shell script below, the shell script fails. I run Python 2.7.7 from anaconda distribution. #!/Users/myName/anaconda/bin/python2.7 cd