- Download miniconda installer from
https://docs.conda.io/en/latest/miniconda.html
. - Move to
/netscratch/$USER
and copyinstall_miniconda.sh
there. - Execute the file using:
./install_miniconda.sh
. This will install a basic conda environment - Create custom conda env:
conda env create --file environment.yml
.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from moviepy.video.io.VideoFileClip import VideoFileClip | |
import os | |
def extract_audio(video_path, output_audio_folder): | |
# Create output folder if it doesn't exist | |
if not os.path.exists(output_audio_folder): | |
os.makedirs(output_audio_folder) | |
# Load the video clip | |
video_clip = VideoFileClip(video_path) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://computingforgeeks.com/how-to-install-python-on-ubuntu-linux-system/ | |
sudo apt install software-properties-common -y | |
sudo add-apt-repository ppa:deadsnakes/ppa | |
sudo apt install python3.10 | |
sudo apt install python3.10-venv | |
sudo apt install python3.10-dev | |
sudo apt install python3.10-minimal | |
sudo apt install python3.10-distutils | |
cd ~ && mkdir pyenvs && cd pyenvs |