Python ImportError cannot import urandom Since Ubuntu 12.04 upgrade

后端 未结 5 1084
感情败类
感情败类 2020-12-08 00:01

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          


        
5条回答
  •  暖寄归人
    2020-12-08 00:39

    Another solution is to remove pip if you installed it with apt-get use wget to fetch it

    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.

    This worked for me.

提交回复
热议问题