推薦一篇文章:http://www.cnblogs.com/IT-LearnHall/p/9486029.html
另外,記錄幾個自己遇到的問題
首先是換源。無論是安裝包還是安裝后更新python包,從官網下載都是龜速,建議從清華大學鏡像站直接下載。
顯示鏡像源:
conda config --show channel
添加新的鏡像
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/(雖然不明白為什么,但是要加這一句,下載速度提升顯著)
conda config --set show_channel_urls yes
刪除舊鏡像源
conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
使用幫助傳送門:https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/
清華鏡像站地址:https://mirrors.tuna.tsinghua.edu.cn/
安裝過程高級選項會提示注冊環境變量的問題,勾選第二個選項也就是register 選項的時候,提示我本機有其他版本python。所以我選擇的第一個選項添加環境變量。本想把原有python集成到Anaconda下,但是網上的更換文件夾以及修改配置文件的方法不可行。最終還是卸載原有python,以anaconda為主。
windows下anaconda幾個命令:
conda update conda 升級conda
conda update --all 升級當前環境下所有的包
conda install package_name 安裝名為“package_name"的包
conda remove package_name 移除名為“package_name"的包
conda create -n py2 python=2 創建名為py2的環境,python版本為python2中的最新版本
conda info -e 顯示現有的所有環境
activate environment_name 激活名為environment_name的環境
deactivate 退出當前環境
python -m ipykernel install --name tensorflow 為notebook增加內核
