Unable To Use Easy_install To Install Python Modules
I am trying to use easy_install to install a module called requests by doing easy_install requests This worked fine a week ago when I was using Python 2.6.5 but today I installed
Solution 1:
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.
Solution 2:
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.
Solution 3:
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
Solution 4:
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
Solution 5:
Using Sudo
before easy_install
may solve your problem
Sudo easy_install requests
thanks
Post a Comment for "Unable To Use Easy_install To Install Python Modules"