plonepip

Why does "pip install Plone" fail with "KeyError: 'z3c'"?


$ pip install Plone

installed a lot of packages but then aborted with this error:

 File "/Users/rob/.virtualenvs/plone/bin/../lib/python2.7/site.py", line 172, in addpackage
    exec(line)
  File "string>", line 1, in <module>
KeyError: 'z3c'

Solution

  • Plone does not support installation via pip, even though it can be found as a Python package with pip search Plone.

    I found this out by asking this question on the #plone IRC channel.

    Per @SteveM's comment, easy_install and setup_tools just can't deal with all the known-good-set issues for an application with as many dependencies as Plone. That's what buildout is good for.

    References:
    Full trace of error
    Reasons why it fails