Skip to content

Commit

Permalink
Fix python3 installation (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-grzybek-ampere authored Nov 26, 2024
1 parent c5bb1a2 commit 9f898ca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions setup_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,17 @@ fi
log "Installing system dependencies ..."
sleep 1
apt-get update -y
apt-get install -y python3 python3-pip build-essential ffmpeg libsm6 libxext6 wget git unzip numactl libhdf5-dev cmake
apt-get install -y build-essential ffmpeg libsm6 libxext6 wget git unzip numactl libhdf5-dev cmake
if ! python3 -c ""; then
apt-get install -y python3 python3-pip
fi
if ! pip3 --version; then
apt-get install -y python3-pip
fi
PYTHON_VERSION=$(python3 -c 'import sys; print(".".join(map(str, sys.version_info[0:2])))')
PYTHON_DEV_SEARCH=$(apt-cache search --names-only "python${PYTHON_VERSION}-dev")
if [[ -n "$PYTHON_DEV_SEARCH" ]]; then
apt-get -y install "python${PYTHON_VERSION}-dev"
apt-get install -y "python${PYTHON_VERSION}-dev"
fi
log "done.\n"

Expand Down
2 changes: 1 addition & 1 deletion setup_rhel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ log "Installing system dependencies ..."
sleep 1
yum install epel-release || :
yum groupinstall -y 'Development Tools'
yum install -y python3 python3-devel python3-pip libSM libXext wget git unzip numactl hdf5-devel cmake gcc-c++
yum install -y python3-devel python3-pip libSM libXext wget git unzip numactl hdf5-devel cmake gcc-c++
git clone -b n4.3.7 https://github.com/FFmpeg/FFmpeg.git && cd FFmpeg && ./configure && make -j && make install && cd .. && rm -r FFmpeg
log "done.\n"

Expand Down

0 comments on commit 9f898ca

Please sign in to comment.