Cannot install eb-cli on wsl2 Windows11

0

I have tried to run the installer script from this

git clone https://github.com/aws/aws-elastic-beanstalk-cli-setup.git

I have tried from my wsl2 home directory and the root system directory. I have also tried through Powershell on Windows11. Each time the installer fails because "Getting requirements to build wheel did not run successfully." I am installing using Python v3.11. I did need to install virtualenv via pip to get to this point. I'm not sure if I'm missing something or some permissions. I know that Windows has strange file paths, especially when using docker. I also made the site-packages directory in the install read and write because I thought that might be a cause of failure. I'm surprised there isn't more documentation regarding eb-cli and wsl2, being that wsl2 seems essential when using a Windows machine for modern web development. Any tips on sources of information would be greatly appreciated.

Brendan
질문됨 10달 전244회 조회
1개 답변
0

Hi Brendan

Could you try the manual installation method? Same as what's mentioned in the documentation -> https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install-linux.html

If you already have Python and pip installed in WSL2 its a simply a matter of running the install command.

pip install awsebcli --upgrade --user
profile picture
Bisina
답변함 10달 전
  • This didn't work for me. The process went through but there is no eb version. This is what the console says

    brendan@BR-Framework:/$ eb --version
    eb: command not found
    brendan@BR-Framework:/$ awsebcli --version
    awsebcli: command not found
    brendan@BR-Framework:/$ pip --version
    pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)
    
  • This answer does work you just need to set the path variables in your local profile as well.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠