--- title: ASR emoji: 📈 colorFrom: purple colorTo: green sdk: docker pinned: false license: apache-2.0 --- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference ### ASR ```text docker build -t asr:v20240510_1734 . docker run -itd --name ASR \ -v /data/tianxing/PycharmProjects/asr/data/:/home/user/app/data/ \ asr:v20240510_1734 /bin/bash ``` ### 异常1 https://blog.csdn.net/sinat_28442665/article/details/126154991 ```text ImportError: libpython3.8.so.1.0: cannot open shared object file: No such file or directory ``` 查找 libpython3.8.so.1.0 共享库所在目录 ```text find / -name libpython3.8.so.1.0 ``` 添加 LD_LIBRARY_PATH ```text export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/miniconda3/envs/ASR/lib/ ``` ### 异常2 https://blog.csdn.net/qq_38225558/article/details/128641561 ```text ImportError: libk2_torch_api.so: cannot open shared object file: No such file or directory ``` 查找 libk2_torch_api.so 共享库所在目录 ```text find / -name libk2_torch_api.so ``` 添加 LD_LIBRARY_PATH ```text export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/python3.8/site-packages/k2/lib/ ```