1.配置虚拟环境
!conda create -n nlp python=3.9
!conda activate nlp
最好选用python3.9因为3.8会导致jupyterlab下载失败
前提: 我不推荐引入额外的镜像,除非你下载极慢,正常镜像就挺好用的。
引入镜像(选做)
pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
这样的话默认使用清华镜像下载,就不会每次都去在指令后添加了。
清华大学开源软件镜像站网址
取消清华源
!pip config unset global.index-url