0

我正在尝试将 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 没有问题,所以不太确定可能是什么问题。

任何帮助将不胜感激

4

1 回答 1

1

它不喜欢wave.py文件的名称。给它一个新名字,现在一切都好。

于 2019-07-12T12:35:18.583 回答