Upgraded Ubuntu to Precise Pangolin (12.04), and Python\'s Random is now broken... I suspect other things might be broken too. How do I fix Python?
File
Another solution is to remove pip if you installed it with apt-get use wget to fetch it
wget
wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py
and then run
python get-pip.py or sudo python get-pip.py if you're not logged in with root.
python get-pip.py
sudo python get-pip.py
This worked for me.