Unable to use easy_install to install Python modules

前端 未结 6 817
北荒
北荒 2020-12-28 18:31

I am trying to use easy_install to install a module called requests by doing

easy_install requests

This work

相关标签:
6条回答
  • 2020-12-28 19:02

    Did you try using sudo like this?

    sudo easy_install requests
    

    Or specify the install directory to a directory that you have write privileges.

    easy_install --install-dir=/home/foo/bar
    

    But you should really use PIP instead of easy_install. It is much better and has a lot more features.

    0 讨论(0)
  • 2020-12-28 19:02

    You should use virtualenv on package-based Linux distributions so Python scripts don't interfere with other packages or conflict with the OS's package-manager.

    http://workaround.org/easy-install-debian

    0 讨论(0)
  • 2020-12-28 19:02

    The following worked for me with Ubuntu 12.10 installing easy_install then pip:

    sudo apt-get install python-virtualenv
    curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
    sudo python get-pip.py
    
    0 讨论(0)
  • 2020-12-28 19:07

    Using Sudo before easy_install may solve your problem

    Sudo easy_install requests
    

    thanks

    0 讨论(0)
  • 2020-12-28 19:16

    It might be a simple case of you missing "sudo" in the front. Can you try it with sudo easy-install requests

    putting the "sudo" will add the required permissions.

    0 讨论(0)
  • 2020-12-28 19:20

    Have you tried adding your new python.framework to path? On mountain lion I added /Library/Frameworks/Python.framework/Versions/3.3/bin/ to /etc/paths and then I was able to use easy_install-3.3 and pip-3.3

    0 讨论(0)
提交回复
热议问题