Skip to content

Instantly share code, notes, and snippets.

@diegozr1
Last active March 12, 2018 02:04
Show Gist options
  • Save diegozr1/95e5d8517b767dcb9656e113f2b75de8 to your computer and use it in GitHub Desktop.
Save diegozr1/95e5d8517b767dcb9656e113f2b75de8 to your computer and use it in GitHub Desktop.
Machine Learning & Data Science

Setup to start AI and data science

This mini-guide helps you to install the dependencies you need to get started with AI and scientific programs.

Windows setup

Install Miniconda

  • The Miniconda installer can be downloaded from the Anaconda official website.

Miniconda installers

  • Any dependency can be installed from the Anaconda Prompt in Windows as follows
pip install pandas
pip install tensorflow
pip install keras
  • Jupyter Notebook
pip install --upgrade --force-reinstall --no-cache-dir jupyter

Linux setup

Create a bash script with the following data

#! /bin/bash
#Downloading Miniconda 64Bits for Linux
 wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
#Changing file permission for execution
 chmod a+x Miniconda3-latest-Linux-x86_64.sh
#Installing Miniconda
 ./Miniconda3-latest-Linux-x86_64.sh

# Follow instructions to complete install

# Creating environment (sandbox instance called py3 [choose the name you want])
 conda create -n py3 python=3 ipython
# Activating created environment
 source activate py3
# Install package manager pip
 conda install pip
# The installation installs the packages
 #pip install numpy
 #pip install pandas
 #pip install matplotlib
# which ipython is to be used in the environment? pip freeze shows it
 pip freeze
# Installing ipython notebook
 conda install ipython-notebook
# Installing the packages
 conda install numpy
 conda install pandas
 conda install matplotlib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment