繁体   English   中英

在 azure 应用程序服务中部署时,librosa 中出现 OSError('sndfile library not found')

[英]OSError('sndfile library not found') in librosa while deploying in azure app service

总结.yml

name: Build and deploy Python app to Azure Web App - summarize1

on:
  push:
    branches:
      - main
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2

    - name: Set up Python version
      uses: actions/setup-python@v1
      with:
        python-version: '3.6'

    - name: Create and start virtual environment
      run: |
        python -m venv venv
        source venv/bin/activate
        
                                        
    - name: Install dependencies
      run: |
        pip install -r requirements.txt
        sudo apt-get update
        sudo apt install autoconf autogen automake build-essential libasound2-dev \
        libflac-dev libogg-dev libtool libvorbis-dev libopus-dev libmp3lame-dev \
        libmpg123-dev pkg-config python
        sudo apt-get install ffmpeg

要求.txt

numba==0.48.0
git+https://github.com/librosa/librosa

考虑编写一个脚本(即 apt-get install -y libsndfile1),该脚本将手动安装依赖项(在应用服务启动时通过 apt-get。在 Azure 中配置应用服务以在它启动时调用该脚本(即 startup.sh)启动。请查看: https : //pypi.org/project/SoundFile/

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM