When using pip install, a temporary folder will be created in /tmp/ so
../src/google/protobuf/... cannot be found in /tmp
ln -s /path/to/src/ /tmp/ (absolute path)
then in ../protobuf-2.x.x/python/
pip install .
在 2010年2月9日星期二 UTC+8下午12:09:38，prot...@googlecode.com写道：
> Comment #10 on issue 66 by danhomerick: cannot install using easy_install
> I think what's going on is:
> 1. easy_install is finding that egg at pypi.python.org is out of date
> (v2.0.3) as
> compared to the main download page (v2.3.0) and chooses the most current
> 2. easy_install doesn't exhaustively search the protobuf-2.3.0.zip file
> so is not
> finding the setup.py file residing in the python subfolder.
> I think the simplest fix is would be to keep pypi up to date with each new
> Alternatively, maybe you could move setup.py to reside in the top level?
> Could you try the following from protobuf-2.3.0/python:
> python setup.py bdist_egg upload
> This will update egg at PyPi with a current version. Note that users who
> easy_install to get the egg will only get the python files, and won't get
> protoc. In
> my case, I want easy_install to grab protobuf as a dependency and thus
> don't need it
> to install protoc anyways. I think it's possible to change setup.py so
> the egg
> will include protoc (and any other files desired) but they'll reside in
> You received this message because you are listed in the owner
> or CC fields of this issue, or because you starred this issue.
> You may adjust your issue notification preferences at:
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to firstname.lastname@example.org.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.