首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何安装djangorestframework-gis-distance

如何安装djangorestframework-gis-distance
EN

Stack Overflow用户
提问于 2021-03-10 16:53:52
回答 1查看 65关注 0票数 1

嗨,我在ubuntu上,我试着安装djangorestframework-gis-distance

我按照说明安装了依赖项,它安装得很好。但是当我安装djangorestframework-gis-distance时,它给出了一个错误:

代码语言:javascript
复制
    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?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 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)中可用。

归根结底:这个包已经被抛弃了,已经过时了。忘了它吧。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66561340

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档