ubuntu环境下tensorflow的安装

    xiaoxiao2025-02-08  38

    1、建立一个python环境 python版本为3.6 取名tensorflow

    conda creat -n tensorflow python=3.6

    2、激活这个叫tensorflow的python环境

    source activate tensorflow

    3、在这个环境下安装tensorflow

    pip install tensorflow

     

    在使用tensorflow之前,必须激活环境

    source activate tensorflow

    然后才进入 python

    退出python    ctrl+d

    退出tensorflow    conda deactivate

     

     

    最新回复(0)