3

I want to add location feature on my django project. In internet I found, I have to run pip install django-google-address first. This gives an error, how to solve this?

Complete output from command python setup.py egg_info: ERROR: 
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "C:\Users\Dell\AppData\Local\Temp\pip-install-h0qlrtha\django-google-address\setup.py", line 3, in <module>
      from pip.req import parse_requirements ModuleNotFoundError: No module named 'pip.req'
----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in C:\Users\Dell\AppData\Local\Temp\pip-install-h0qlrtha\django-google-address\
charlie
  • 389
  • 3
  • 16
Lexi
  • 125
  • 1
  • 1
  • 5
  • What version of Python are you using? Because I think it might be that you're trying to use Python 2 which does not work with django-google-address (as stated [here](https://github.com/leonardoarroyo/django-google-address/issues/1)) – charlie Jun 29 '19 at 12:05
  • @Charlie I am using Python version 3.6 – Lexi Jun 29 '19 at 12:12
  • Could you provide the whole output of `pip`? Or is that it? – charlie Jun 29 '19 at 12:15
  • @Charlie ERROR: Complete output from command python setup.py egg_info: ERROR: Traceback (most recent call last): File "", line 1, in File "C:\Users\Dell\AppData\Local\Temp\pip-install-h0qlrtha\django-google-address\setup.py", line 3, in from pip.req import parse_requirements ModuleNotFoundError: No module named 'pip.req' ---------------------------------------- ERROR: Command "python setup.py egg_info" failed with error code 1 in C:\Users\Dell\AppData\Local\Temp\pip-install-h0qlrtha\django-google-address\ – Lexi Jun 29 '19 at 12:20
  • That appears to be [this unfixed issue](https://github.com/leonardoarroyo/django-google-address/issues/4). I don't know how one would fix that. Maybe you could try with a different version of pip (notably pip <= 10) – charlie Jun 29 '19 at 12:22
  • 1
    Please update all the details in your question and not in the comments. – mchawre Jun 29 '19 at 12:22
  • Please mention pip version by running command `pip --version` – Akshay Pratap Singh Jun 29 '19 at 19:50

1 Answers1

0

Use pip3 install django-google-address as this might be related to the version of python.

You might need to recreate some files as mentioned under No module named pip.req

Pasan Chamikara
  • 715
  • 9
  • 21
  • Can I know the error you get while executing pip3 or pip? – Pasan Chamikara Jun 29 '19 at 13:01
  • Can you try `python -m pip install –upgrade pip` to upgrade the pip version if it is an issue with that (But most possibly it won't). But there is a workaround. You may refer the thread https://stackoverflow.com/questions/25192794/no-module-named-pip-req/28725142 – Pasan Chamikara Jun 29 '19 at 13:13