Skip to content

Instantly share code, notes, and snippets.

@itbcodedev
Forked from Ic3fr0g/data-science-setup.sh
Created March 16, 2019 14:34
Show Gist options
  • Select an option

  • Save itbcodedev/27fc23dba4c3b18e3450ae198e517c95 to your computer and use it in GitHub Desktop.

Select an option

Save itbcodedev/27fc23dba4c3b18e3450ae198e517c95 to your computer and use it in GitHub Desktop.
Setup for data science related dev on (>=) RHEL 7.6 (Maipo) and CentOS
# Need to be sudo to install the following
yum update
yum install -y wget bzip2 tmux
# Download and run anaconda3 for python3 and follow instructions
wget https://repo.continuum.io/archive/Anaconda3-5.3.1-Linux-x86_64.sh | sh
# Conda install essential datascience packages
conda update --all
conda install pandas numpy scipy scikit-learn keras tensorflow pytorch nltk matplotlib seaborn
# Source for installing R
# https://bluehatrecord.wordpress.com/2014/10/13/installing-r-on-red-hat-enterprise-linux-6-5/
# To install R, under [rhui-REGION-rhel-server-optional]
# change enabled=0 to enabled=1 in the following file
vi /etc/yum.repos.d/redhat-rhui.repo
yum install R
# Install essential datascience packages in R
R -e 'install.packages(c("tidyverse", "ggplot2", "forecast", "devtools", "IRkernel", "lubridate", "caret", "doSNOW", "foreach", "doParallel", "Metrics"))'
# Command to make R kernel available in Jupyter Notebook
R -e 'IRkernel::installspec(name="ir3.5", displayname="R35"); devtools::install_github("ellisp/forecastxgb-r-package/pkg")'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment