1
>>>import adaptfilt
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
import adaptfilt
File "C:\Users\walid\AppData\Local\Programs\Python\Python36\lib\site-packages\adaptfilt\__init__.py", line 41
print ' LMS: ', lmsres
^
SyntaxError: Missing parentheses in call to 'print'
我有固定的這個ERREUR我編輯的文件__init__.py
但它再次告訴我:ModuleNotFoundError:無模塊名爲LMS
>>>import adaptfilt
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
import adaptfilt
File "C:\Users\walid\AppData\Local\Programs\Python\Python36\lib\site-packages\adaptfilt\__init__.py", line 19, in <module>
from lms import lms
ModuleNotFoundError: No module named 'lms'
它看起來像你爲python 2安裝了一個模塊到Python 3.你可以嘗試通過'2to3'工具來運行它,但它不能保證自動修復軟件包中的所有東西。 –
您使用的庫設計爲python3不兼容的語法,您應該使用python2 – eyllanesc