关于protobuf的问题

Problem & Solution

Problem_0

$ conda update conda
Traceback (most recent call last):
  File "/home/hok/anaconda2/bin/conda", line 6, in 
    sys.exit(conda.cli.main())
  File "/home/hok/anaconda2/lib/python2.7/site-packages/conda/cli/main.py", line 162, in main
    return conda_exception_handler(_main, *args)
  File "/home/hok/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 630, in conda_exception_handler
    return handle_exception(e)
  File "/home/hok/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 620, in handle_exception
    print_unexpected_error_message(e)
  File "/home/hok/anaconda2/lib/python2.7/site-packages/conda/exceptions.py", line 561, in print_unexpected_error_message
    from conda.base.context import context
  File "/home/hok/anaconda2/lib/python2.7/site-packages/conda/base/context.py", line 18, in 
    from .._vendor.auxlib.path import expand
  File "/home/hok/anaconda2/lib/python2.7/site-packages/conda/_vendor/auxlib/path.py", line 8, in 
    import pkg_resources
  File "/home/hok/anaconda2/lib/python2.7/site-packages/pkg_resources/__init__.py", line 72, in 
    import packaging.requirements
  File "/home/hok/anaconda2/lib/python2.7/site-packages/packaging/requirements.py", line 59, in 
    MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")
TypeError: __call__() takes exactly 2 arguments (1 given)

Solution

将 protobuf-3.2.0 降级为 protobuf-3.1.0

pip install --upgrade   https://storage.googleapis.com/tensorflow/linux/cpu/protobuf-3.1.0-cp27-none-linux_x86_64.whl

将 setuptools 从 35 降到 33

pip install setuptools==33.1.1


你可能感兴趣的:(关于protobuf的问题)