由于目前自己原先使用的环境由于装载了很多不必要的库,准备重新使用anaconda搭建一个虚拟环境,用于跑一些nlp的代码,所以记录一下环境安装流程,给自己做个备份。
1.创建一个新的环境,这里还是使用最熟悉的python3.8
conda create -n nlp38 python=3.8
conda activate nlp38
2.常用的镜像安装网站
https://pypi.tuna.tsinghua.edu.cn/simple
https://mirrors.aliyun.com/pypi/simple/
https://pypi.douban.com/simple/
使用方法
pip install xx(pandas) -i https://pypi.tuna.tsinghua.edu.cn/simple
安装需要的库即可
例如我需要安装一些transform库之类的
pip install transform -i https://pypi.tuna.tsinghua.edu.cn/simple