Launching Python Script From Windows Command Line: Script Starts, Then Fails
I'm a rank novice, please bear with me. I've inherited a python script from another engineer. For convenience, I want to be able to launch the script from a Windows bat file, bu
Solution 1:
Your batch file needs to be like the following if you want it to work:
call C:/ProgramData/Anaconda3/Scripts/activate.bat C:/ProgramData/Anaconda3 C:\ProgramData\Anaconda3\python.exe "C:/Users/xxx/Documents/script.py"
Hope this helps...
Solution 2:
I'm pretty sure (from the information given in the import error), that the only thing you have to do is import Numpy before you import pandas. You can do this by switching lines 22 and 21.
Solution 3:
Have you at least tried conda install numpy
as it seems your Anaconda installation does not include numpy. (Can somebody turn this into a comment? Thanks.)
Post a Comment for "Launching Python Script From Windows Command Line: Script Starts, Then Fails"