安装django-google-address时出错

时间:2019-06-29 11:57:56

标签: python django django-rest-framework python-3.6

我想在我的django项目中添加位置功能。在互联网上,我必须先运行pip install django-google-address。 这给出了一个错误,如何解决呢?

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\

1 个答案:

答案 0 :(得分:0)

使用pip3 install django-google-address,因为这可能与python版本有关。

您可能需要按照No module named pip.req

所述重新创建一些文件