0
回答
pip之前可以用,安装了些东西之后,就用不了,,ModuleNotFoundError: No module named 'pip'
极速云服务器,低至1.04元/天>>>   

File "E:\ProgramData\Anaconda3\Scripts\pip-script.py", line 3, in <module>

import pip

ModuleNotFoundError: No module named 'pip'

 

我大概是操作了这些步骤:”

  • python3 -m venv env
    env/bin/python -m pip install --upgrade pip setuptools
    source env/bin/activate

Authorization

Run the sample

  • Install the sample dependencies:

    sudo apt-get install portaudio19-dev libffi-dev libssl-dev
    pip install --upgrade -r requirements.txt
  • Verify audio setup:

    # Record a 5 sec sample and play it back
    python -m audio_helpers
  • Run the push to talk sample. The sample records a voice query after a key press and plays back the Google Assistant's answer:

    python -m pushtotalk
  • Send a pre-recorded request to the Assistant:

    python -m pushtotalk -i in.wav
  • Save the Assistant response to a file:

    python -m pushtotalk -o out.wav

 

 

https://github.com/googlesamples/assistant-sdk-python/tree/master/google-assistant-sdk/googlesamples/assistant/grpc#run-the-sample

<无标签>
举报
sca7
发帖于2个月前 0回/83阅
顶部