python Anaconda 安装管理包,开发环境

时间:2021-09-12 08:01:35

在自己的电脑上安装Anaconda,用conda create创建一个python 2.7版本的environment。今后我们的程序都在这个环境下执行

0.download anaconda and install

1.open anaconda prompt conda create -n python2 python=2.7
2.[y/n] chose y
3.conda info -e #conda会显示环境列表,当前活动的环境会被括号括起来
4.conda list #查看哪个版本的python或其他程序安装在了该环境中,或者确保某些包已经被安装了或被删除了
5.conda search beautifulsoup4 #查找一个包
6.conda install -python3 beautifulsoup4 #我们将在当前环境中安装这个Beautiful Soup包
7.pip install beautifulsoup4 #通过pip命令来安装包
8.conda remove -n beautifulsoup4 #移除包
9.conda remove -n python2.7 -all #移除环境