@Tim Yuan The execute python script component is executed in a simple environment with Python pre-installed only and with non-admin permission. Any additional packages have to be installed as part of the script. When you submit the run each module or component is run as per its settings on the compute chosen, basically if you have more than one execute python script component each of them is different and the settings do not persist between the two components. I hope this helps!!
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.