当前位置:网站首页>手把手带你做强化学习实验--敲级详细
手把手带你做强化学习实验--敲级详细
2022-07-06 09:30:00 【牙疼想吃桃】
小菜鸡在完成一个作业
好艰难
“如果你装环境不熟练,不要心急,淡定冷静深呼吸,总会遇到奇奇怪怪的问题,有的报错都看不懂搜不到,要慢慢来哦,尽量贴近我的版本号,再做好快照”
环境如下:
ubuntu20.04
anaconda-5.1.0
pycharm
0 预期
我们要做什么事情呢?
1 搭建环境
下载好git包,创建anaconda环境,conda env create -f env.yml
有三个文件下载失败
问了师兄
准备换北外的源
(换他!真的有快好多!)
https://mirrors.bfsu.edu.cn/help/anaconda/
channels:
- defaults
show_channel_urls: true
default_channels:
- https://mirrors.bfsu.edu.cn/anaconda/pkgs/main
- https://mirrors.bfsu.edu.cn/anaconda/pkgs/r
- https://mirrors.bfsu.edu.cn/anaconda/pkgs/msys2
custom_channels:
conda-forge: https://mirrors.bfsu.edu.cn/anaconda/cloud
msys2: https://mirrors.bfsu.edu.cn/anaconda/cloud
bioconda: https://mirrors.bfsu.edu.cn/anaconda/cloud
menpo: https://mirrors.bfsu.edu.cn/anaconda/cloud
pytorch: https://mirrors.bfsu.edu.cn/anaconda/cloud
pytorch-lts: https://mirrors.bfsu.edu.cn/anaconda/cloud
simpleitk: https://mirrors.bfsu.edu.cn/anaconda/cloud
然后.condrc文件是长这个样子滴
运行 conda clean -i清除索引缓存,保证用的是镜像站提供的索引。
运行 conda create -n myenv numpy 测试一下吧。
依然还是报了ssl的错
还是和当初一样,把.condrc中的https改成http,全部的哦~source
成功啦哈哈哈哈哈

2 下载项目
git clone https://github.com/MultiAgentLearning/playground.git或者直接下载压缩包
我没有安装git,直接下载的安装包
然后把名字改成了playground,保持和课件一毛一样
3 安装
进入该项目的目录,
cd ~/playground
(直接在那个文件夹中打开,就不用进入了哈哈哈)创建anaconda环境,
conda env create -f env.yml
重头戏来了!答应我!当它在执行的时候里键盘远一点!
这个试了好多次
中科大的源换成了北京外国语大学的源
这次终于看到了曙光,下载都很顺利,然后我小心按了ctrl+c然后终止了,就试了多好方法再没成功
(包括但不限于以下方式:直接装gym包,
pip install gym,但是这样装的是最新版,并不是这个包里指定的版本限定版本的安装
conda install gym==0.10.11,依然报出了相同的错先移除pommerman环境,再执行
conda env create -f env.yml,依然不行然后我考了师兄的pommerman的文件夹,还是不行
然后我还换了源,还是不行
)
当我第二次重新装环境的时候,没有碰键盘,但是依然报了这个错。
稳住!

然后这次有好好保留快照,回到上一个状态,再执行一次命令就好啦哈哈哈哈哈哈
终于成功啦哈哈哈哈哈哈哈哈哈
芜湖!起飞!
然后我们看一下效果
enter一下!OJBK!
- 常用命令
移除环境(pommerman)conda remove -n xxxx --all
我卡在了gym,单独装pip install gym
限定版本的安装conda install gym==0.10.11
看一下现在有哪些环境envconda env list
激活环境
退出环境conda deactivate
搞实验
docker

执行
docker build -t pommerman/simple-agent -f examples/docker-agent/Dockerfile .
提示
那就按着提示先装一下


4 碎碎念
一定一定要利用好快照,请大家欣赏一下彭彭的神仙快照

边栏推荐
猜你喜欢

逻辑运算指令

ByteDance 2022 school recruitment R & D advance approval publicity meeting, students' top 10 issues

TCP's three handshakes and four waves

Activit零零碎碎要人命的坑

The daemon thread starts redis and modifies the configuration file

redux使用说明

Log4j2 major vulnerabilities and Solutions
![Saw local status change event StatusChangeEvent [timestamp=1644048792587, current=DOWN, previous=UP]](/img/e6/c53ad67ead1793a2acb93c26e8d377.jpg)
Saw local status change event StatusChangeEvent [timestamp=1644048792587, current=DOWN, previous=UP]

Ruoyi-Cloud 踩坑的BUG

~81 long table
随机推荐
Monomer application concept
After idea installs the plug-in, restart the plug-in and disappear
Activiti目录(一)重点介绍
字节跳动2022校招研发提前批宣讲会,同学们最关心的10个问题
Only learning C can live up to expectations top5 S1E8 | S1E9: characters and strings & arithmetic operators
Activiti directory (IV) inquiry agency / done, approved
JS garbage collection mechanism and memory leakage
QT system learning series: 1.2 style sheet sub control lookup
100张图训练1小时,照片风格随意变,文末有Demo试玩|SIGGRAPH 2021
Eureka high availability
[graduation project] QT from introduction to practice: realize imitation of QQ communication, which is also the last blog post in school.
~85 transition
The most lost road I have ever walked through is the brain circuit of ByteDance programmers
汇编课后作业
Shell_ 01_ data processing
冯诺依曼体系结构
Instructions for Redux
MySQL digital function
控制转移指令
ByteDance open source Gan model compression framework, saving up to 97.8% of computing power - iccv 2021