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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南