我正在尝试将 pydub 导入项目并收到以下错误:
Traceback (most recent call last):
File "wave.py", line 3, in <module>
from pydub import AudioSegment
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pydub/__init__.py", line 1, in <module>
from .audio_segment import AudioSegment
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pydub/audio_segment.py", line 7, in <module>
import wave
File "/Users/Sim/Desktop/Audio Wave/wave.py", line 3, in <module>
from pydub import AudioSegment
ImportError: cannot import name 'AudioSegment'
我安装了 pydub 没有问题,所以不太确定可能是什么问题。
任何帮助将不胜感激