1.下載aconda
Anaconda 安裝包可以在 https://mirrors.ustc.edu.cn/anaconda/archive/ 下載。
2.aconda用法
1) conda info -e 查看當前環境
2) conda create -n tensorflow python=3.6 創建環境
3) conda remove -n tensorflow --all 刪除環境
4) activate tensorflow 切換到tensorflow環境
3.配置aconda鏡像源
1)conda config --show-sources 查看aconda源
2)添加清華鏡像
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
3)conda config --set show_channel_urls yes 設置下載時顯示源地址
4.安裝常用python包
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ pandas
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ pandas
5.設置pip源
在用戶目錄C:\Users\Administrator\ 下新建pip目錄,目錄中新建pip.ini文件,內容如下
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple #豆瓣源,可以換成其他的源
trusted-host = pypi.douban.com #添加豆瓣源爲可信主機,要不然可能報錯
pip timeout = 120
6.jupyter安裝
pip install -i http://pypi.douban.com/simple/ jupyter
啓動jupyter時指定路徑:
jupyter notebook E:/jupyter
7.安裝tensorflow
pip install tensorflow==1.9.0