嗨,我在ubuntu上,我试着安装djangorestframework-gis-distance
我按照说明安装了依赖项,它安装得很好。但是当我安装djangorestframework-gis-distance时,它给出了一个错误:
ERROR: Command errored out with exit status 1:
command: /home/aarush/git_fudo/food1_back/food1_back/env/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ntgn7sle/djangorestframework-gis-distance/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ntgn7sle/djangorestframework-gis-distance/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 pip-egg-info
cwd: /tmp/pip-install-ntgn7sle/djangorestframework-gis-distance/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-ntgn7sle/djangorestframework-gis-distance/setup.py", line 9, in <module>
from pip.req import parse_requirements
ModuleNotFoundError: No module named 'pip.req'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.基本上就是说,我认为没有名为pip.req的文件。有没有其他方法可以安装djangorestframework-gis-distance?
发布于 2021-03-10 17:57:17
让我们看看:https://pypi.org/project/djangorestframework-gis-distance/。最新版本1.0.0于2016年2月7日发布。
需要Python2.7,但不需要3+。Django 1.7+,但很可能不是Django 2+。错误消息表明setup.py使用了禁用的接口pip.req,该接口仅在pip < 19 (IIRC)中可用。
归根结底:这个包已经被抛弃了,已经过时了。忘了它吧。
https://stackoverflow.com/questions/66561340
复制相似问题