我正在Mac上尝试使用Pulp。当我运行下面的代码时,它显示以下错误:
代码(部分):
# import the library pulp as p
import pulp as p
# Create a LP Minimization problem
Lp_prob = p.LpProblem('Problem', p.LpMinimize)
错误:
Traceback (most recent call last):
File "pulp.py", line 2, in <module>
import pulp as p
File "/Users/gauravmogra/Desktop/pulp/pulp.py", line 5, in <module>
Lp_prob = p.LpProblem('Problem', p.LpMinimize)
AttributeError: 'module' object has no attribute 'LpProblem'