aws cli in cygwin - how to clean up differences in windows and cygwin style paths

后端 未结 4 1845
南旧
南旧 2021-02-06 09:16

I suspect this is my ineptitude in getting path variables set right, but I\'m at a loss.

I\'ve installed the aws cli using pip in cygwin.

pip install aws         


        
4条回答
  •  我在风中等你
    2021-02-06 09:58

    When running pip install awscli from cygwin, it may install awscli in Window's Anaconda Python installation, instead of in Cygwin's Python (which is what you want). Then, when running aws, you will get an error that the aws executable can't be found. The solution I found was installing python/pip inside cygwin by following below bash commands from cygwin shell:

    pip uninstall awscli
    wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg
    install apt-cyg /bin
    apt-cyg install python
    wget https://bootstrap.pypa.io/get-pip.py
    python get-pip.py
    pip install awscli
    

    Make sure you have wget installed in cygwin.

提交回复
热议问题