今天我在斗地主输光了豆子,愤愤不平地打开b站,打算怒学一下如何打牌,无意中看到这样一个视频:
进入github,里面的步骤很详细!我来记录一下我的安装过程吧!
https://github.com/tianqiraf/DouZero_For_HappyDouDiZhu
第一步:DouZero环境配置
先上官方步骤:)
https://github.com/kwai/DouZero
我自己的步骤:
- mac上安装git
终端输入git
,自动安装Xcode。 - 终端输入
git clone https://github.com/kwai/DouZero.git
如果提示“unable to access”,“Connection refused” 之类的错误,可以把https改成git。来,试试看! - 确保安装python 3.6+,安装依赖:
cd douzero
pip3 install -r requirements.txt
- 安装DouZero
pip3 install douzero
提示:Successfully installed douzer