Running python through uipath

I’m trying to alter some excel features through python and then run the script in UiPath. The python script runs effectively while using python.exe. However, I got an error when using the Load Python Script activity saying that “error loading python script. Exception type: System.InvalidOperationException.” What should I do to solve this problem