我已经在anaconda提示符中pip安装了myhdl,它成功了。但是当我导入myhdl时,它抛出了错误,不是“没有模块命名为myhdl”,而是这样:
Traceback (most recent call last):
File "D:\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py",
line 3267, in run_code exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-17-e4990cfca0be>", line 1, in <module>
import myhdl
File "D:\Anaconda3\lib\site-packages\myhdl\__init__.py", line 162, in
<module>
from ._always_seq import always_seq, ResetSignal
File "D:\Anaconda3\lib\site-packages\myhdl\_always_seq.py", line 48
def __init__(self, val, active, async):
^
SyntaxError: invalid syntax
使用此功能会出错
import myhdl