game1.py:
import gambit
import gambit.nash
def play():
g=gambit.read_game("4X3.nfg")
solver=gambit.nash.ExternalLogitSolver()
solver.solve(g)
return
play()
这是我的代码显示错误:
/usr/lib/python2.7/site-packages/setuptools-5.7-py2.7.egg/pkg_resources.py:1049: UserWarning: /home/raja/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
如果我在python控制台中运行相同的代码而没有给出任何错误正常工作..