Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix python3 installation #270

Merged
merged 4 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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