Why Gambit game theory code is not ruuning using python script?

609 Views Asked by At

game1.py:

import gambit
import gambit.nash

def play():
    g=gambit.read_game("4X3.nfg")
    solver=gambit.nash.ExternalLogitSolver()
    solver.solve(g)
    return

play()

this is my code showing error that:

/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).

if i run the same code in python console not giving any error working properly..

0

There are 0 best solutions below