Reputation: 9563
pip install mandrill
gives me following error
File "/home/rock/bin/pip", line 8, in ?
sys.exit(
File "/usr/local/lib/python2.4/site-packages/pkg_resources.py", line 357, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python2.4/site-packages/pkg_resources.py", line 2394, in load_entry_point
return ep.load()
File "/usr/local/lib/python2.4/site-packages/pkg_resources.py", line 2108, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/home/rock/lib/python2.4/pip-6.0.3-py2.4.egg/pip/__init__.py", line 211
except PipError as exc:
^
SyntaxError: invalid syntax
how do i fix this ?
( i am using webfaction
. i needed to install mandrill
. i installed pip using easy_install pip )
Upvotes: 0
Views: 1754
Reputation: 9563
found my way out (solution)
webfaction has a folder called webapps which contains the project within project there is a lib folder containing the python according the one you choose for installing django. there is another lib folder in home/username directory which contains older version of pythons also.
if you run easy_install pip from there it will have problems. go inside the python2.7 folder within webapps/yourproject/lib/ and then run easy_install-2.7 pip
. this solved the problem . then i could install mandrill using pip install mandrill
Upvotes: 3
Reputation: 55197
You have a Python version that is 10 years old and isn't supported anymore (2.4). The Mandrill package simply requires a more recent version of Python.
You probably should change hosts.
Upvotes: 1