Installing tensorflow with anaconda in windows

前端 未结 20 2431
春和景丽
春和景丽 2020-12-08 02:15

I have installed Anaconda on Windows 64 bit. I have downloaded PyCharm for creating a project and in the terminal of PyCharm I have installed numpy, scipy

20条回答
  •  悲&欢浪女
    2020-12-08 03:13

    Currently tensorflow has binaries only for Unix based OS i.e. Ubuntu Mac OS X - that's why no mention of Windows in setup docs.

    There are long discussions on Github:

    • Open - Windows Support and Documentation
    • Closed - How to install TensorFlow on Windows
    • Closed - How to install/run/use TensorFlow on windows machines?

    A SO answer - tensorflow — is it or will it (sometime soon) be compatible with a windows workflow?


    Suggestion:

    For now, on Windows, the easiest way to get started with TensorFlow would be to use Docker: http://tensorflow.org/get_started/os_setup.md#docker-based_installation

    It should become easier to add Windows support when Bazel (the build system we are using) adds support for building on Windows, which is on the roadmap for Bazel 0.3. You can see the full Bazel roadmap here.

    Or simply use a Linux VM (using VMPlayer), and the stated steps will setup it up for you.


    For PyCharm - Once conda environment will be created, you'll need to set the new interpretor (in conda environment) as the interpretor to use in PyCharm:

    Now to use the conda interpreter from PyCharm go to file > settings > project > interpreter, select Add local in the project interpreter field (the little gear wheel) and browse the interpreter or past the path.

    The default location - the environment lives under conda_root/envs/tensorflow. The new python interpreter 'll be at conda_root/envs/tensorflow/bin/pythonX.X , such that the site-packages will be in conda_root/envs/tensorflow/lib/pythonX.X/site-packages.

提交回复
热议问题