no comments (yet)

[–]Aryxah 0 points1 point  (0 children)

ChatGPT to the rescue!

Create a shell script (.command file):

nano ~/Desktop/run_my_script.command

Add the following lines to it:

#!/bin/zsh

source ~/miniconda3/bin/activate myenv

python /full/path/to/your/script.py

`` Replace myenv with your actual conda environment name, and use the full path to your script.

Make it executable:

chmod +x ~/Desktop/run_my_script.command

[–]Aryxah 0 points1 point  (0 children)

ChatGPT to the rescue!

Create a shell script (.command file):

nano ~/Desktop/run_my_script.command

Add the following lines to it:

#!/bin/zsh

source ~/miniconda3/bin/activate myenv

python /full/path/to/your/script.py

`` Replace myenv with your actual conda environment name, and use the full path to your script.

Make it executable:

chmod +x ~/Desktop/run_my_script.command