欢迎来到JIA的博客

conda创建、查看、删除虚拟环境

1、创建虚拟环境

Anaconda创建环境:
比如,创建pyhon=3.6的版本环境取名叫 nlp

conda create -n nlp python=3.6

2、删除虚拟环境操作:(谨慎操作)

conda remove -n nlp --all

3、激活环境

conda activate nlp

如果发现进不去,那么

先:

source activate nlp

conda activate nlp

4、查看环境下已有的安装包:

conda list

 

5、安装第三方包

pip install xxxx 或者 conda install xxxx

例如:

pip install tensorflow

 

6、退出当前虚拟环境:

conda deactivate

7、Linux下查看已有虚拟环境

conda env list

 

posted @ 2021-05-20 19:35  讷言敏行~  阅读(1460)  评论(0编辑  收藏  举报