ImportError: No module named tensorflow

前端 未结 18 2309
长情又很酷
长情又很酷 2020-11-28 05:11

Please help me with this error

I have installed the tensorflow module on my server and below is it\'s information

15IT60R19@cpusrv-gpu-109:~$ pip sho         


        
18条回答
  •  粉色の甜心
    2020-11-28 06:15

    Instead of using the doc's command (conda create -n tensorflow pip python=2.7 # or python=3.3, etc.) which wanted to install python2.7 in the conda environment, and kept erroring out saying the module can't be found when following the installation validation steps, I used conda create -n tensorflow pip python=3 to make sure python3 was installed in the environment.

    Doing this, I only had to type python instead of python3 when validating the installation and the error went away.

提交回复
热议问题