• baselines算法库的安装——Ubuntu20.04系统使用anaconda环境配置


    baselines算法库不做过多介绍,个人认为这是公开是所有reinforcement learning算法库中最权威的,虽然没有后期更新,也就是没有了学术界的state of the art ,  但还是十分的经典。

    算法库地址

    https://github.com/openai/baselines

    ======================================================

    具体安装过程:

    sudo apt-get update && sudo apt-get install libopenmpi-dev zlib1g-dev

    sudo snap install cmake --classic

    git clone https://github.com/openai/baselines

    cd baselines

    conda create -n test python=3.7

    conda activate test

    conda install tensorflow-gpu==1.14

    pip install -e .

    pip install filelock
    
    pip install matplotlib
    
    pip install pandas 
    
    pip install gym[atari]
    
    conda install -c conda-forge ffmpeg==4.2.2

    假设anaconda安装位置为~/anaconda3,那么执行下面操作:

    ln -s  ~/anaconda3/envs/test/lib/libopenh264.so  ~/anaconda3/envs/test/lib/libopenh264.so.5
    cd ~/anaconda3/envs/test/lib/python3.7/site-packages/atari_py/
    
    rm atari_roms -rf
    
    git clone https://gitee.com/devilmaycry812839668/atari_roms
    
    rm atari_roms/README.md
    
    cd - 

    检测下是否安装成功:

    pip install pytest

    pytest

     

    顺利通过测试,成功安装baselines算法库。

    ======================================================

  • 相关阅读:
    云南网页首页布局全代码
    表格样式(鼠标经过时整行变色)
    做自定义圆角矩形
    网页布局
    黄冈中学首页的模板简图
    动态网页简版
    十字绣首页设计
    go组合
    http rpc关联
    php echo print
  • 原文地址:https://www.cnblogs.com/devilmaycry812839668/p/16003430.html
Copyright © 2020-2023  润新知