博弈论开发工具Gambit的Python包安装

本文介绍了如何在Linux环境下安装博弈论开发工具Gambit的Python2.7版本。由于Gambit不支持Python3.X,因此推荐使用Python2.7。在安装过程中可能需要安装多个编译依赖包,详细步骤参考英文原帖:https://stackoverflow.com/questions/30286551/cant-build-gambit-game-theory-extension。此指南旨在帮助读者解决Gambit Python接口的安装问题。
摘要由CSDN通过智能技术生成

博弈论在经济、管理、计算机等各领域都有广泛的应用,最近需要博弈论的模拟与验证,主要开发工具是Python,就琢磨用Gambit。Gambit提供了多种接口,如果用命令行就够的话就不用费心用Python接口了,主要是用Python比较麻烦,用官方提供的往往一下子不成功,多方实践下来,有如下经验:

  1. 用Python2.7版本,原因是Gambit最后更新比较早,编译不支持Python3.X
  2. 在Linux下安装多个编译准备的包。

具体有篇英文帖子讲了,我就不再翻译了,复制于下:

I just managed to make the Gambit library to work in my command line.

There are many steps and mistakes you may encounter in the installation:

As @theycallhimtom said, the issue is that you need to build Gambit before you can build the python interface. Follow the instructions in the link to build Gambit first.

While building, you may encounter the error that after you clone Gambit to your local environment from Github, and go into the directory, you can't run ./configure.

You'll have to install the 3 tools/dependency they require to install: autoconf, automake, and libtool. All these can
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值