0
1

More than 3 years have passed since last update.

Automatorでシェルスクリプトまとめ【更新版】

Last updated at Posted at 2020-10-06

Pythonをターミナルから実行できるが、Automatorで正常に実行できない

参考サイト:https://teratail.com/questions/279608

エラー文
アクション“シェルスクリプトを実行”でエラーが起きました: “Traceback (most recent call last):
  File "goods.py", line 4, in <module>
    import chromedriver_binary 
ModuleNotFoundError: No module named 'chromedriver_binary'”

実行している環境が違う為エラーが表示される

/bin/zsh
which python3 👈 ここでpython3の場所を特定
>> /usr/local/bin/python3 👈 結果をpython3のところに置き換える
Aotomator
/usr/local/bin/python3 helloworld.py

これで無事実行できました。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1