#!/bin/bash

info 'installing common python modules'
if ( pip install --upgrade --user -r "$DOTFILES_HOME/python/software.txt" ) 2>&1 | while read line
	do
		debug "$line";
	done
then
	success "installed python modules"
else
	warn "python modules installation failed"
fi

#!/bin/bash

# Check pip installed
hash pip 2>/dev/null || return

info 'installing common python modules'
if ( pip install --upgrade --user -r "$DOTFILES_HOME/python/software.txt" ) 2>&1 | while read line
	do
		debug "$line";
	done
then
	success "installed python modules"
else
	warn "python modules installation failed"
fi

Check pip installed before using it
Check pip installed before using it
