I set the variables for Env. All necessary modules for Pandas operation are installed by pip.
I wanted to run the code to display it in “Output”. I run with: Alt + CTRL + N(or right click -> Run code).
In output returns the message:
But when I run in the terminal (right click -> Run Python File in Terminal), the code works correctly.
I would like the code to run correctly in output(right click -> Run code), not in the terminal.
Any suggestions?
Kenil Vasani
It seems that the module pandas is installed in a virtual envorinment which you are not accessing via VS Code.
I’d suggest you to install pandas in default python as well via
This way the VS Code will work it out just fine.
Else:
In VS Code console, activate the virtual enviornment in which you have installed the pandas module, and then run it. It should work