I suspect that it is my inability to configure the path parameters, but I do not understand.
I installed aws cli using pip in cygwin.
pip install awscli
I have two python environments ... anaconda windows distribution, and a version of cygwin can install for you.
which python > /usr/bin/python where python > C:\cygwin64\bin\python > C:\windows-style-path-to-anaconda\python.exe
when i try to run aws cli
aws --version > C:\windows-style-path-to-anaconda\python.exe: can't open file > 'cygdrive/c/cygdrive-style-path-to-anaconda/Scripts/aws': > [Errno 2] No such file or directory'
I tried adding the aws path to my windows path variable. Bad luck.
I tried adding this to my .bashrc
export PATH="$PATH:/cygdrive/c/cygdrive-style-path-to-anaconda/Scripts"
Bad luck.
I tried modifying "aws" which is trying to start python. First I changed #! to point to python cygwin instead of python windows.
then he could find the aws file to run ... but he could not find any of the files to import ... 'awscli.clidriver', 'botocore._', etc.
I tried changing my path variables to indicate the location of these ... anaconda / Lib / site-packages ... I even tried to make sys.path.insert (1, path) in the 'aws' file myself .... it fixed this problem, but each downloaded file looked in different places and couldnโt find them, and there were too many things to merge with one at a time in aws.py files.
these are the jobs ... in cygwin ...
cd /cygdrive/c/cygwin-path-to-anaconda/Scripts ./aws --version > aws-cli/1.10.26 Python/2.7.11 Windows/7 botocore/1.4.17
but there must be a better way, right? or...
Unfortunately, deleting deleted files just freezes, trying to delete awscli, and I don't know how to get it to use cygwin python, if I can even uninstall / reinstall. And after several attempts to correct my variable paths, I am at a loss.
Any advice is appreciated.