I'm using Automator in Mac OSX 10.12.3 to run a Python script utilizing pyperclip. I created an Automator step with Run Shell Script (/usr/bin/python):
import pyperclip
import datetime
now = datetime.datetime.now()
pyperclip.copy(str(now.year) + str(now.month) + str(now.day) + '_' + str(now.hour) + str(now.minute) + str(now.second))
However, it is showing this error:
ImportError: No module named pyperclip
I can execute this code in Terminal, why pyperclip is not recognized by /usr/bin/python ? FYI, I also have Anaconda installed.
pyperclipis installed in your machine? - julian salas