tensorflow import issue for python 3.7

后端 未结 2 1485
轮回少年
轮回少年 2021-01-25 04:29

After installing tensorflow for python 3.7, I tried to import it but it gave me a syntax error. the command used for installation : sudo -H pip3 install --upgrade https://stora

2条回答
  •  粉色の甜心
    2021-01-25 05:12

    tensorflow import for python 3.7 for Anaconda 2019.03 with Python 3.7 version

    for CPU

    create command:

    conda create -n tensorflow_env tensorflow

    activate command:

    conda activate tensorflow_env

    Import command:

    (tensorflow_env) C:\WINDOWS\system32>python

    import tensorflow as tf

    print(tf.version)

    for GPU

    create command:

    conda create -n tensorflow_gpuenv tensorflow-gpu

    activate command:

    conda activate tensorflow_gpuenv

    Import command:

    (tensorflow_gpuenv) C:\WINDOWS\system32>python

    import tensorflow as tf

    print(tf.version)

提交回复
热议问题