"试了下app.py执行shell去安装,为什么modelscope会失败?:
import subprocess
try:
subprocess.check_call(['sudo', 'apt-get', 'install', 'python-pyaudio', 'python3-pyaudio'])
print(""PyAudio installed successfully."")
except subprocess.CalledProcessError as e:
print(""Error occurred while installing PyAudio:"", e) 是没有root权限吗?"
ModelScope旨在打造下一代开源的模型即服务共享平台,为泛AI开发者提供灵活、易用、低成本的一站式模型服务产品,让模型应用更简单!欢迎加入技术交流群:微信公众号:魔搭ModelScope社区,钉钉群号:44837352