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
gefragt vor 10 Monaten240 Aufrufe
1 Antwort
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
beantwortet vor 10 Monaten
  • 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.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen