博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ubuntu16.04+anaconda+openspiel
阅读量:3755 次
发布时间:2019-05-22

本文共 1012 字,大约阅读时间需要 3 分钟。

1.创建anaconda环境:

conda create -n openspiel python=3.7

2 激活环境:

source activate openspiel

3.更新

sudo apt-get update

4.安装matplotlib

conda install matplotlib

     matplotlib版本至少3.11,默认安装就是这个版本

5.安装cmake

conda install cmake

cmake版本至少3.12,默认安装3.14

6.下载编译安装openspiel

git clone https://github.com/deepmind/open_spiel.gitcd open_spiel./install.sh # Install various dependencies (note: assumes Debian-based distro!)pip3 install --upgrade -r requirements.txt # Install Python dependenciesmkdir buildcd buildCXX=g++ cmake -DPython_TARGET_VERSION=3.6 -DCMAKE_CXX_COMPILER=g++ ../open_spielmake -j6ctest -j6

7. 把pythonpath加入bashrc

sudo gedit .bashrc

在最下面加入:

# For the Python modules in open_spiel.export PYTHONPATH=$PYTHONPATH:/
# For the Python bindings of Pyspielexport PYTHONPATH=$PYTHONPATH:/
/build/python

更新一下bashrc

source .bashrc

8.安装absl-py

pip install absl-py

9.跑测试试一下:

cd openspiel/openspielpython3 python/examples/example.py --game=breakthroughpython3 python/examples/matrix_game_example.py

10.参考资料:

转载地址:http://nnisn.baihongyu.com/

你可能感兴趣的文章
Java Swing搭建QQ登录界面
查看>>
Spring常用依赖及注解的使用
查看>>
解决Maven中资源过滤问题
查看>>
Springboot中解决Ajax请求跨域问题
查看>>
Keras软件安装
查看>>
cuda安装
查看>>
Anaconda3换源配置
查看>>
Unsafe.putOrderedXXX系列方法详解(数组赋值的第二种方式)
查看>>
javase个人垃圾复习笔记05Java StringBuffer 和 StringBuilder 类
查看>>
牛客编程题(七)
查看>>
三种设计模式
查看>>
牛客编程题(八)
查看>>
牛客编程题(九)
查看>>
过滤流
查看>>
3.输入整型数组和排序标识,对其元素按照升序或降序进行排序
查看>>
13.找到字符串的最长无重复字符串字串
查看>>
java常用垃圾回收器G1和CMS有什么区别
查看>>
BIO、NIO,AIO的区别
查看>>
linux压缩与解压
查看>>
数据结构基础(一)
查看>>