版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/irving512/article/details/78119179
0. 资料
1. Windows安装
- 建议使用清华镜像下载。
- 安装完成后,使用清华镜像
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
2. Ubuntu
- 从清华镜像下载对应镜像。
- 安装
sudo bash Anaconda3-4.3.0-Linux-x86_64.sh
# 一路回车+yes(注意最后一步是问是否要将Anaconda安装到系统路径)
# 安装完成后,设计清华镜像
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
3. 建立新环境
# 安装
conda create --name tensorflow python=3.5
# 激活
activate tensorflow # Windows
source activate tensorflow # Linux & Mac
# 撤销激活
deactivate tensorflow # Windows
source deactivate tensorflow # Linux & Mac
# 删除
conda remove --name tensorflow --all
3. 基本操作
conda list
conda install numpy
conda uninstall numpy
4. 碰到的问题
- 使用Conda安装Keras时,不能使用tensorflow-gpu版,只能使用cpu版。
- 解决方案:keras和tensorflow都使用pip安装。
- 不能安装happybase。
- 解决方案:使用pip安装。