1.conda下创建新环境
(base) C:\Users\dell>conda create -n tensorflow python=3.8
注意:-n后面的就是环境的名字。这就非常好地区分conda中的比如一个环境安装了tenserflow一个环境安装pytorch的这种情况。
注意:python=3.8中的版本
(base) C:\Users\dell>conda activate tensorflow
结果是:
(tensorflow)C:\Users\dell>
同理在conda中移除环境:
conda remove -n (虚拟环境名称) --all
2.查看环境中的安装包
(tensorflow)C:\Users\dell>pip list
3.安装tensorflow
(tensorflow)C:\Users\dell>pip install tensorflow
注意:现在的tensorflow是已