一、闯关任务
(1)将开发机通过SSH端口映射到本地VS code中,如下图
(2)创建hello_world.py文件,执行以下命令安装gradio库。
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade gradio
(2)运行Hello_world.py,进入以下链接
二、创建conda环境
(1)输入命令 conda create -n cheny=3.10,创建名为cheny的虚拟环境
(2)输入命令conda activate cheny激活名为cheny的虚拟环境
(3)输入命令conda env list查看现有虚拟环境
三、运行test.sh
(1)创建test.sh
(2)运行test.sh
以使用命令:chmod +x test.sh
,然后输入./test.sh restore xtuner0.1.17
并按下回车就可以还原虚拟环境了。