When I run my code using anaconda with > python main.py
it works but when I run it using windows command prompt it gives me this error:
ModuleNotFoundError: No module named 'pandas._libs.interval'
The above exception was the direct cause of the following exception:
ImportError: C extension: No module named 'pandas._libs.interval' not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace --force' to build the C extensions first.
But as far as I can tell all modules are installed properly. Using python 3.8 and latest version of anaconda.
The issue seems to be that the modules are installed in your anaconda environment not windows environment so command prompt doesn't know where the modules are installed, if you need to run the code from command prompt you will need to ensure that python is correctly configured on your windows PATH and that the relevant modules are installed there as well