Skip to content

Instantly share code, notes, and snippets.

View SalemHarrache's full-sized avatar
💭
🤤

Salem Harrache SalemHarrache

💭
🤤
View GitHub Profile
@SalemHarrache
SalemHarrache / gist:3369303
Created August 16, 2012 11:04
Pip management
# Output outdated packages
pip freeze | cut -d = -f 1 | xargs -n 1 pip search | grep -B2 'LATEST:'
# Upgrade all outdated packages
pip freeze | cut -d = -f 1 | xargs echo pip install -U
@SalemHarrache
SalemHarrache / gist:3369094
Created August 16, 2012 10:22
virtual env setup at alwaysdata
## log via ssh
mkdir ~/modules/
## add modules to python path in your .bashrc
export PYTHONPATH=~/modules/
## source .bashrc
## install pip & virtualenv
easy_install-2.6 --install-dir ~/modules -U pip
easy_install-2.6 --install-dir ~/modules -U virtualenv