The 'google-api-python-client' distribution was not found and is required by the application with pyinstaller

后端 未结 6 901
长情又很酷
长情又很酷 2020-12-02 01:13

I am currently trying to build an app with pyinstaller. I have gotten the error The \'google-api-python-client\' distribution was not found and is required by the appl

6条回答
  •  我在风中等你
    2020-12-02 01:33

    make sure that pip is linked to pip3 (Python 3) and not pip2 (Python2). On many OS(es) and distros, that's still the case.

    Check if that solves your problem:

    python3 -m pip install --upgrade google-api-python-client
    

    If it did then add an alias to your .bashrc that links pip to pip3 and not pip2.

    e.g.

    echo "alias pip='pip3'" >> ~/.bashrc
    

提交回复
热议问题