How to run tensorflow in atom?

I already install tensorflow with pip.
I can run the code in python IDE, and success in the shell
But when I use the Atom with atom runner, it always says “ImportError: No module named tensorflow”
Can anybody tell me what’s going on?

import tensorflow as tf
hello = tf.constant(‘Hello, TensorFlow!’)
sess = tf.Session()

There’s a solid chance that you have multiple different versions of Python on your system and the one that the python command points at is not the one with a site-packages/tensorflow/ folder. The first thing to test is to open up Terminal and test whether python works.

1 Like

Actually it doesn’t work. What should I do? Reinstall ?

Reinstall what, exactly?

When you installed tensorflow, did you do it from within the Python IDE or the command line?

The problem is solved, Thanks

Excuse me
Firstly I come from Chine so my english very bad
And could you tell how to run tensorflow in atom(Anaconda3 Python 3.6)
Thanks you!

Choose your OS and follow the steps

There has the steps of Installation with Anaconda

alright I will try again

So can someone explain how they got tensorflow working on atom? I’m still having trouble.

1 Like

If you explain precisely what you are having trouble with and what you are trying to do, someone might be able to help you. What Atom packages, what code, and what version of Python you are using, plus any error messages you have seen, at the minimum. If you have a goal for what your workflow should look like and can articulate a broader vision of how you want to accomplish your work, I can offer an even more customized solution.

I’m having the same problem when trying to use tensorflow in atom. Anyone please?

I’m trying to run my code and it gives this error:

Traceback (most recent call last):

File “/Users/Macbookpro/Documents/GitHub/DPED/”, line 5, in
import tensorflow as tf
ImportError: No module named tensorflow
[Finished in 4.124s]

Trouble with tensorflow in Atom, or in general? I.e., does it work when running from the command line?

1 Like

tried and reinstalling according to the website : also. But when typed

    Macbookpro$ python
python: can't open file '': [Errno 2] No such file or directory

You need to be inside the folder where your file is in order to run it like that.

Try python --version, also, to make sure you’re using the right version.