I used conda tool to configure Tree2gd successfully!
Codes:
# create a conda virtual environment named 'tree2gd'(创建虚拟环境)
conda create -n tree2gd python=3.8
# activate the environment(激活环境)
conda activate tree2gd
# configure R(安装R环境)
conda install -c conda-forge r-base r-essentials
# install some packages(安装Tree2GD_draw.R所需包)
conda install -c bioconda bioconductor-ggtree
conda install -c conda-forge r-ggridges
conda install -c conda-forge r-rcolorbrewer
conda install -c conda-forge r-ggplotify
# test(测试)
Tree2gd_test
Result of 'Tree2gd_test':

I used conda tool to configure Tree2gd successfully!
Codes:
Result of 'Tree2gd_test':