我的代码行之一是
import yaml
使用以下命令安装在python 3.7上 pip install pyyaml
出现以下错误
追溯(最近一次通话):
从TestPeer.TestPeerChangingSendRate导入TestPeerChangingSendSpeed文件“ C:/code/EPMD/Kodex/Applications/EPMD-Software/Sandbox/peer_changing_send_rate.py”,第1行,输入文件“ C:\ code \ EPMD \ Kodex \ Applications \ EPMD-Software \ TestPeer \ TestPeerChangingSendRate.py”,
从.TestPeer导入TestPeer文件“ C:\ code \ EPMD \ Kodex \ Applications \ EPMD-Software \ TestPeer \ TestPeer.py”中的第1行,
从BaseProcess.ZmqPeerClass导入ZmqPeer文件的第4行,“ C:\ code \ EPMD \ Kodex \ Applications \ EPMD-Software \ BaseProcess \ ZmqPeerClass.py”,
从.ZmqPublisherClass中导入第2行,导入ZmqPublisher文件“ C:\ code \ EPMD \ Kodex \ Applications \ EPMD-Software \ BaseProcess \ ZmqPublisherClass.py”,
第10行,来自。导入ZmqProcessClass文件“ C:\ code \ EPMD \ Kodex \ Applications \ EPMD-Software \ BaseProcess \ ZmqProcessClass.py”,
从.ConfigBaseClass中导入第5行,导入ConfigBase文件“ C:\ code \ EPMD \ Kodex \ Applications \ EPMD-Software \ BaseProcess \ ConfigBaseClass.py”,
第3行,在导入yaml文件“ C:\ code \ EPMD \ Kodex \ venv \ lib \ site-packages \ yaml__init __。py”中,第9行,从.dumper导入*文件“ C:\ code \ EPMD \ Kodex \ venv \ lib \ site-packages \ yaml \ dumper.py”,第6行,来自.representer import *文件“ C:\ code \ EPMD \ Kodex \ venv \ lib \ site-packages \ yaml \ representer.py”,线
263,在SafeRepresenter.add_representer(datetime.date,AttributeError中:模块’datetime’没有属性’date’