I have a simple python script including pandas which I want to run using powershell using python "C:\Users\...\Test script.py"
. However, running the script in powershell results in the following error message:
+ python "test_function.py"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Traceback (most recent call last)::String) [],
RemoteException
+ FullyQualifiedErrorId : NativeCommandError
File "test_function.py", line 1, in <module>
import pandas as pd
ModuleNotFoundError: No module named 'pandas'
The python script runs normally in pycharm and when I delete the part where using the pandas the script also runs via powershell. Hence, my question is how to run a python script with pandas using powershell?