01-ChatGLM4实践—Python环境搭建

环境搭建教程

1、安装python 环境

推荐使用Anaconda包,不需要直接安装python,因为ChatGLM4采用的python版本建议3.12及以上,,建议下载较高版本的Anconda。

https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
在这里插入图片描述
1 下载
在这里插入图片描述

2 安装

1 勾选两个:选择Just me用户(安装更快更简单)。其他我默认安装了,后面第三步手动配置环境变量path。
img

img

img

2 测试下 python环境是否成功
在这里插入图片描述
在这里插入图片描述

3 如果没有就需要在环境变量中配置(一般默认安装都会有的)

后在环境变量Path中手动添加Anaconda的path路径:

右击我的电脑属性,打开高级系统设置,配置环境变量即可。

4 配置镜像源

channels:               
  - defaults
show_channel_urls: true
default_channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
  conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch-lts: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  deepmodeling: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/

2、安装VScode编辑器

1 安装编辑器(下载后安装默认即可)

https://code.visualstudio.com/Download
在这里插入图片描述

2 中文插件
在这里插入图片描述
3 安装AI写代码插件(能够自动提示和补全)
在这里插入图片描述

  • 6
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值