问题现象:
本地有个脚本做了复制,分别在相应的目录下执行 (tts_py310) [ma-user test]$**python MeloTTSOM.py **报不同的提示信息
1、A 路径下执行失败
Traceback (most recent call last):
File "/home/ma-user/work/x30058104/model/MeloTTS-main/test/MeloTTSOM.py", line 21, in <module>
from melo import utils
ImportError: cannot import name 'utils' from 'melo' (/home/ma-user/work/zhongyunde/envs/tts_py310/lib/python3.10/site-packages/melo/__init__.py)
2、 B路径 下执行缺失 cached_path,然后使用pip install cached_path安装后出错现象
Traceback (most recent call last):
File "/home/ma-user/work/zhongyunde/envs/tts_py310/lib/python3.10/site-packages/urllib3/connection.py", line 199, in _new_conn
sock = connection.create_connection(
File "/home/ma-user/work/zhongyunde/envs/tts_py310/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/home/ma-user/work/zhongyunde/envs/tts_py310/lib/python3.10/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
TimeoutError: timed out
The above exception was the direct cause of the following exception:
...
File "/home/ma-user/work/zhongyunde/envs/tts_py310/lib/python3.10/site-packages/urllib3/connection.py", line 208, in _new_conn
raise ConnectTimeoutError(
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0xfffcdd7e2290>, 'Connection to huggingface.co timed out