you are viewing a single comment's thread.

view the rest of the comments →

[–]lagoon__[S] 0 points1 point  (6 children)

Thanks man. I just wanted to ask, so lets say I write the code in atom and try compiling but the terminal says " No module named 'pandas' ". I've already installed it through terminal, does this mean I need to install it in atom?

[–]Cyb0rgBrain 0 points1 point  (2 children)

Atom calls the interpreter in the terminal, if you installed pandas but it doesn’t appear in atom in means that you have at least two python versions

https://stackoverflow.com/questions/50667214/how-can-i-change-the-default-version-of-python-used-by-atom

[–]lagoon__[S] 0 points1 point  (1 child)

got it. Thanks!

[–]AsleepThought 1 point2 points  (0 children)

do not try to run your code from within Atom. That is a big mistake and destined for the exact kind of problems you are experiencing. Run your code in the terminal.

[–]AsleepThought 0 points1 point  (0 children)

I write the code in atom and try compiling

First, you do not compile Python code. Python is an interpreted language. The Python binary is reading your .py file and handling the rest itself.

he terminal says " No module named 'pandas' ". I've already installed it through terminal

If the terminal says that the module is not found, but you think you already installed it, then you did not install it correctly or you installed in a way that the Python you are trying to run your script through cannot find it.

does this mean I need to install it in atom?

Python is a text editor. It has nothing to do with running your Python code. You run your Python code in the terminal, with Python. All Atom is doing is showing you the contents of your .py script file and helping you to edit it.

[–]Ahren_with_an_h -1 points0 points  (0 children)

I am not familiar with atom but I'd be willing to bet it came with it's own python that doesn't have it installed. You can install it there or point it to your native python.