I am on Ubuntu and I tried to install djangorestframework-gis-distance
I followed the instructions and installed the dependencies which installed fine. But when I install djangorestframework-gis-distance it gives an error of
JavaScript
x
12
12
1
ERROR: Command errored out with exit status 1:
2
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('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
3
cwd: /tmp/pip-install-ntgn7sle/djangorestframework-gis-distance/
4
Complete output (5 lines):
5
Traceback (most recent call last):
6
File "<string>", line 1, in <module>
7
File "/tmp/pip-install-ntgn7sle/djangorestframework-gis-distance/setup.py", line 9, in <module>
8
from pip.req import parse_requirements
9
ModuleNotFoundError: No module named 'pip.req'
10
----------------------------------------
11
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
12
Which basically says I think that there is no file called pip.req. Is there another way I can install djangorestframework-gis-distance?
Advertisement
Answer
Lets see: https://pypi.org/project/djangorestframework-gis-distance/ . Latest version 1.0.0 released Feb 7, 2016.
Requires Python 2.7 but not 3+. Django 1.7+ but most probably not Django 2+. The error message indicates setup.py
uses forbidden API pip.req
which was only available in pip
< 19 (IIRC).
The bottom line: the package is abandoned and outdated. Forget about it.