初学Python的时候,真的佩服遇到包依赖问题全世界去找的自己,直到某一天发现Anaconda 包管理器,把这一个繁琐的工作,变成简单的 conda install xxx!
3分钟教会大家如何安装 anaconda 和编辑神器 jupyter notebook;
安装环境,vtlur vps Centos7 64位;
下载安装:
# wget https://repo.anaconda.com/archive/Anaconda3-2018.12-Linux-x86_64.sh && chmod +x Anaconda3-2018.12-Linux-x86_64.sh && bash ./Anaconda3-2018.12-Linux-x86_64.sh
常用命令:
- # conda install 包名(安装各种包,功能类似于 pip install)
- # conda create -n 环境名(建立新的运行环境)
- # conda activate 环境名(激活新环境)
- # conda deactivate 环境名(关闭新环境)
- # conda env remove -n 环境名(删除已建环境)
指定 Python 版本:
- # conda create -n py27 python=2.7(指定环境版本)
安装 jupyter notebook:
# conda install jupyter notebook
閱讀更多 你永遠得不到的小老弟 的文章