conda可以很好的隔离各个python环境,因此可以安装多个python的版本,响应的在各个环境中安装tf,pytorch等
1.建立名字为tf2的环境
conda create -n tf2 python=3.5 ,安装python3.5
2.激活tf2的环境:
conda activate tf2;
conda deactivate退出
3.安装Tensorflow
pip install tensorflow==2.0.0b1
慢的话:
pip install --index-url https://pypi.douban.com/simple tensorflow==2.0.0
4.查看所有的环境
conda env list