wget https://repo.anaconda.com/archive/Anaconda3-2022.10-Linux-x86_64.sh
2.运行脚本:
bash Anaconda3-2022.10-Linux-x86_64.sh In order to continue the installation process, please review the license agreement. Please, press ENTER to continue3.回车
Do you accept the license terms? [yes|no]4.这里输入yes
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 below5.这里回车,让它进行自我安装。(注意如果/root/anaconda3目录被占用,进入/root目录,删掉anaconda3文件夹)
by running conda init? [yes|no]选择yes,初始化conda,会把conda添加到环境变量
Thank you for installing Anaconda3!表示安装成功,那么可以愉快的玩耍了。
conda --version conda 22.9.09.升级conda
conda update --all10.如果你安装不正确,想要卸载:
cd /root/ rm -rf anaconda3 删除安装文件 vim ~/.bashrc 删除环境变量
apt-get install python3 python --version Python 3.9.16 // 注意这个python的版本,在conda创建chatgpt环境的时候填这个版本三.安装Visual ChatGPT,运行如下命令
git clone https://github.com/microsoft/visual-chatgpt.git //下载 cd visual-chatgpt //进入目录 conda create -n visgpt python=3.9 //用python构建chatgpt环境 conda activate visgpt //切换到上面构建的环境 pip install -r requirements.txt //通过脚本构建需要的库文件结尾: