在清华镜像网上下载最新的anaconda。
https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
选择了Anaconda3-5.3.1-Linux-x86_64。下载后放到虚拟机的目录下,执行:
bash Anaconda3-5.3.1-Linux-x86_64.sh
按下enter键,然后一直按enter,输入yes。
会提示你是否将路径写入bashrc里,选择yes.
最后会提示你是否安装VScode。根据自己的需求去选择。
之后需要
source ~/.bashrc
conda创建python3.6的环境,名字叫tensorflow。
conda create -n tensorflow python=3.6
进入环境。
source activate tensorflow
安装tensorflow-cpu。根据自己需求选择版本。
conda install -c conda-forge tensorflow=1.8.0
安装keras。
conda install -c conda-forge keras=2.1.5
安装nltk。
conda install -c anaconda nltk=3.2.5
安装pillow。
conda install -c anaconda pillow=5.0.0
安装opencv。
conda install -c conda-forge opencv=3.4.1
安装pytorch。
conda install pytorch=0.4.1 -c pytorch