1.环境(Anacnoda)
1.Anaconda 的使用
-
1.包管理
-
python --version
- 查看python的版本信息
-
conda list
- 查看安装的包
-
conda install xxx
- 包的安装(pip install xxx)
-
conda remove xxx
- 卸载包(pip uninstall xxx)
-
-
2.环境管理
-
conda create --name xxx python2
- 创建了python版本为2的环境
-
conda create --name xxx python3
- 创建了python版本为3的环境
-
conda create --name xxx python3 anaconda
- 创建了python版本为3的环境,并具有anaconda的所有包
-
conda env list
-
conda info --envs
-
[source该参数可选,当无法激活时] activate xxx
- 激活环境
-
conda deactivate
- 退出环境
-
conda remove --name xxx --all
- 删除一个已有的环境
-
2.Jupyter Notebook(注意工作空间切换)
在当前路径栏输入jupyter notebook,就在当前目录启动(骚操作)