Why is Python easy_install not working on my Mac?

后端 未结 7 642
甜味超标
甜味超标 2020-11-28 19:39

I have a Mac running Python 2.6. When I try to use easy_install I get this message:

/usr/bin/easy_install-2.6:7: UserWarning: Module pkg_resourc         


        
7条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-28 20:30

    1. Check your /usr/bin and /usr/local/bin for easy_install installations and remove any old script:

      sudo rm -f /usr/bin/easy_install*
      sudo rm -f /usr/local/bin/easy_install*
      
    2. Download and run distribute:

      curl -O https://svn.apache.org/repos/asf/oodt/tools/oodtsite.publisher/trunk/distribute_setup.py
      
      sudo python distribute_setup.py
      sudo rm distribute_setup.py
      
    3. Try again, and enjoy. E.g.:

      sudo easy_install pip
      

提交回复
热议问题