Run anaconda through bash file
<p>I have made a script in python that crops an image.
I am using Anaconda for that and Python 2.7 in Windows</p>

<p>What i want to do is to run this script for a whole folder with images, so i was thinking of making a bash file. 
I followed <a href="http://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/" rel="nofollow">these steps</a> and <em>bash on Ubuntu on Windows</em>. I installed again Anaconda for linux and some libraries needed but now i am getting <a href="http://i.stack.imgur.com/s0shU.png" rel="nofollow">this error</a> even if i have installed the same package as in Windows.</p>

<p>Any ideas? Or maybe another ways to do it on Windows where my script is already running well on Anaconda?</p>

<p>This may not be what you're looking for as you asked for assistance with your bash script. However, you could modify your python script to crop all the images in a specified folder using the glob function. You can run it on windows with anaconda installed.</p>

<p>glob returns a list of all the file names matching the unix style flags and wildcards. A sample of how this might work for your scenario may be:</p>

<pre><code>import glob
files = glob.glob("c:/path/*")   # where path is the path to your images to be cropped

# then run your script on all the images to be cropped
for f in files:
    # Run python script
</code></pre>

python linux bash shell anaconda