pythonpandaspython-3.6

ModuleNotFoundError: No module named 'pandas'


I'm following a practical machine learning tutorial and I am already stuck on the second video. https://www.youtube.com/watch?v=JcI5Vnw0b2c&t=195s

 import pandas as pd
 import Quandl

 df = Quandl.get('WIKI/GOOGL')
 print(df.head())

When I run the same code as the man in the video, all I get is

ModuleNotFoundError: No module named 'pandas'

I'm on Windows 10 using Visual Studio 2017 and I already did pip install pandas. I have python 3.6.1 installed.


Solution

  • I had this problem as well and tried a few different things until I realized my python path under settings.json (python.pythonPath) was incorrect and pointing to the wrong directory. The path should be to where the Python.exe file is under programs.