代码
import pandapower as pp
net = pp.create_empty_network()
b1 = pp.create_bus(net, vn_kv=20.)
b2 = pp.create_bus(net, vn_kv=20.)
pp.create_line(net, from_bus=b1, to_bus=b2, length_km=2.5, std_type="NAYY 4x50 SE")
pp.create_ext_grid(net, bus=b1)
pp.create_load(net, bus=b2, p_mw=1.)
pp.runpp(net)
print(net.res_bus.vm_pu)
print(net.res_line.loading_percent)
运行之后报错误,
AttributeError: module ‘pandapower’ has no attribute ‘create_empty_network’
attributeerror: module ‘scipy’ has no attribute ‘version’
第一种错误
---------------------------------------------------------------------------
AttributeE