I downloaded the EBCLI with sudo pip install awsebcli --upgrade --user
When running eb --version
I get the following error.
Traceback (most recent call last):
File "/home/andrew/.local/bin/eb", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/local/google-cloud-sdk/platform/google_appengine/lib/setuptools-0.6c11/pkg_resources.py", line 2603, in <module>
working_set.require(__requires__)
File "/usr/local/google-cloud-sdk/platform/google_appengine/lib/setuptools-0.6c11/pkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/local/google-cloud-sdk/platform/google_appengine/lib/setuptools-0.6c11/pkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: awsebcli==3.12.4
Any ideas?
Edit:
Here is my pip --version
:
pip 9.0.3 from /usr/local/lib/python2.7/dist-packages (python 2.7)
The problem is that you installed
awsebcli
as theroot
user, but performedeb --version
as a non-root
user. So, as far as the non-root
user is concerned,awsebcli
never got installed.To run
eb
as a non-root
user:pip install awsebcli
(without thesudo
)To verify this worked, find
awsebcli
in the output ofpip list
If 1. causes you a problem, I recommend installing the
awsebcli
after setting up avirtualenv
. Basically,virtualenv
compartmentalizes your Python packages so you do not mess with the system's version of Python and theroot
user.