Run python code through batch in anaconda cmd

0

I have a batch created to run a python file, but it is opening the windows cmd and how python is installed in anaconda, it does not work, would it have to run directly from the anaconda cmd as an administrator?

  

start Python c: \ scrapy \ cpfl selenium \ cpfl.py

    
asked by anonymous 01.11.2018 / 21:43

1 answer

0

Good night, what would solve your problem would be to add the current Python installation (directory where it is installed in the HD) to Windows environment variables.

So you can run programs in cmd:

py seuprograma.py

But how do you do that?

If you can not find where Anaconda Navigator Python is installed, I recommend downloading the .exe version of the python syte.

Here is a tutorial on how to add Python to the PATH (Environment Variables). link

I hope I have helped. Good luck!

    
03.11.2018 / 01:34