报错详情如下:
ERROR: Command errored out with exit status 1:
command: /root/.virtualenvs/jianshu_channel_django/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-yzl_scdz/zope.interface/setup.py'"'"'; __file__='"'"'/tmp/pip-install-yzl_scdz/zope.interface/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-5y08i87f
cwd: /tmp/pip-install-yzl_scdz/zope.interface/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-yzl_scdz/zope.interface/setup.py", line 26, in <module>
from setuptools import setup, Extension, Feature
ImportError: cannot import name 'Feature'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
最后解决:
pip install --upgrade pip setuptools==45.2.0
参考文章链接:https://blog.csdn.net/pengshengege/article/details/105113561