Mind Hunter
Mind Hunter

Reputation: 29

Execute Python Script with Command Prompt

I am pretty new in Python. I have created my first program script in pyhton, using spyder. I am getting below error when executing the python script through Command Prompt.

When Ran through CMD

Error - C:\Users\rkuma388\Documents\Project\Python>ETL_ProvJenny_ReportScreen_CoachListLoad.py Traceback (most recent call last): File "C:\Users\rkuma388\Documents\Project\Python\ETL_ProvJenny_ReportScreen_CoachListLoad.py", line 10, in import pandas as pd File "C:\Users\XXXXX\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas_init_.py", line 19, in "Missing required dependencies {0}".format(missing_dependencies)) ImportError: Missing required dependencies ['numpy']

but when running in spyder, it is running fine and giving output. When Ran in Spyder

Do I need to install any additional thing to make it execute in CMD ? Please suggest.

Thanks in advance.

Upvotes: 0

Views: 224

Answers (1)

Ashoka
Ashoka

Reputation: 101

Following are the options you can try:

  1. Even though it is not a real solution, you can uninstall and reinstall numpy with pip.
  2. Check whether you PATH is configured correctly to point to Python folder

Upvotes: 1

Related Questions