conda list 查看自己已安装包
conda create -n env_name(自己写名字) python=3.7(版本号) 创建虚拟环境
conda activate tf 激活环境
conda deactivate tf 推出虚拟环境
source activate env_name 激活虚拟环境
deactivate 退出虚拟环境
conda env list 查看已有虚拟环境
conda install ~ 安装包
conda remove ~ 卸载包
conda update 更新
conda info 查看安装的conda 信息
pip默认的源在国内不太好用,可以 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow,采用清华的源,速度很快
安装bazel
echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
sudo apt install curl
sudo apt-get update && sudo apt-get install bazel
sudo apt-get upgrade bazel
网友评论