Install tensorflow on Windows with anaconda

后端 未结 7 1611
夕颜
夕颜 2021-01-11 19:50

I am trying to install Tensorflow on my Windows PC. Since I have already install and used Anaconda on Python (3.5), I have followed the instructions https://www.tensorflow.o

相关标签:
7条回答
  • 2021-01-11 20:53

    It looks like you need to activate the virtual environment that TensorFlow was installed in. When you activate the virtual environment, it will appear in parenthesis in your command prompt, like in the example tutorial:

    $ source activate tensorflow
    (tensorflow)$  # Your prompt should change
    

    The source command only works on Linux/Mac as far as I'm aware, so for windows you'll have to follow the instructions here:

    http://conda.pydata.org/docs/using/envs.html#change-environments-activate-deactivate

    In general, the script file that handles the activation is location in [your_environment]/bin/activate if you're curious about what it does.

    So basically the tensorflow files are installed inside this environment folder, and Python won't be able to find them unless this folder is added to the PATH where it searches for libraries, and this is essentially what activating the environment does!

    0 讨论(0)
提交回复
热议问题