Skip to main content
Question

Running a Python 3 script with Jamf Pro

  • November 7, 2021
  • 2 replies
  • 32 views

Forum|alt.badge.img+3

I have a script I need to run in using the Python 3 command. Terminal example: Python 3 scriptpath.py

How can I run it via Jamf and verify that runs via Python 3? My estimation is that Jamf is using the computer’s default while I need it to select Python 3 instead of Python which happens for some computers.

2 replies

Forum|alt.badge.img+9
  • Contributor
  • November 9, 2021

The first line of your script SHOULD be pointed to the desired location of python 3 on your systems such as:

#!/usr/local/bin/managed_python3

 


Forum|alt.badge.img+31
  • Honored Contributor
  • November 9, 2021

I wrote a blog post about shipping and using your own Pyton3, which we have done for a few years here.  This might help you figure it out, hope it helps

 

Shipping Your Own Python3