人工智能 阿里云算力服务器的使用

发布于:2025-02-25 ⋅ 阅读:(12) ⋅ 点赞:(0)

获取免费的阿里云服务器

阿里云免费使用地址:
https://free.aliyun.com/
在这里插入图片描述
选择 人工智能平台 PAI

在这里插入图片描述
在这里插入图片描述
选择交互式建模 再选建立实例。
在这里插入图片描述选择对应的GPU 和镜像,点击确认。

注意:250个小时,用的时候开启,不用的时候关闭,否则,很快就用完了
在这里插入图片描述
点击打开,进入控制界面:
在这里插入图片描述

创建conda 环境

在这里插入图片描述
下载anaconda3 :

wget https://repo.anaconda.com/archive/Anaconda3-2024.02-1-Linux-x86_64.sh

下载完成后:输入

bash Anaconda3-2024.02-1-Linux-x86_64.sh

开始安装:
中途会看协议,比较长,–更多–,你就一直按回车。直达让你输入yes或者no

Anaconda3 will now be installed into this location:
/root/anaconda3

  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below
————————————————

看到这里,直接敲回车。 确认安装到 本地。

installation finished.
Do you wish to update your shell profile to automatically initialize conda?
This will activate conda on startup and change the command prompt when activated.
If you'd prefer that conda's base environment not be activated on startup,
   run the following command when conda is activated:

conda config --set auto_activate_base false

You can undo this by running `conda init --reverse $SHELL`? [yes|no]

输入 yes

[no] >>> yes
no change     /root/anaconda3/condabin/conda
no change     /root/anaconda3/bin/conda
no change     /root/anaconda3/bin/conda-env
no change     /root/anaconda3/bin/activate
no change     /root/anaconda3/bin/deactivate
no change     /root/anaconda3/etc/profile.d/conda.sh
no change     /root/anaconda3/etc/fish/conf.d/conda.fish
no change     /root/anaconda3/shell/condabin/Conda.psm1
no change     /root/anaconda3/shell/condabin/conda-hook.ps1
no change     /root/anaconda3/lib/python3.11/site-packages/xontrib/conda.xsh
no change     /root/anaconda3/etc/profile.d/conda.csh
modified      /root/.bashrc

到这里基本就安装完成,部分的可能需要添加环境变量:

我们先进入 bash 环境;

>> bash  
>> conda list

如果ok,就像,否则需要再配置环境变量:

>> source /root/.bashrc

开始配置 conda 环境…
https://blog.csdn.net/zhanglinlang/article/details/145339899