Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't find virtualenv installation during eb-cli setup

I'm installing the Elastic Beanstalk CLI from Github on a Windows machine, but it keeps erroring out because of virtualenv. I get this error:

C:\Users\bigji\Bootcamp\NODE\ClassActivities\EB-CLI>python .\aws-elastic-beanstalk-cli-setup\scripts\ebcli_installer.py

***********************************
1. Locating virtualenv installation
***********************************
ERROR: Could not find and "virtualenv" installed. Ensurevirtualenv is installed and that it is in PATH before executingthis script.

******************************************
2. Creating exclusive virtualenv for EBCLI
******************************************
'virtualenv' is not recognized as an internal or external command,
operable program or batch file.

I've installed virtualenv, and can see it in the scripts folder from which I'm trying to run ebcli_installer. I've added the scripts folder, the virtualenv folder, and the folder containing virtualenv.exe to PATH (using edit environment variables), and I've searched other virtualenv problems on StackOverflow and not found anything that can help.

This is my first time with anything AWS, and my first time adjusting PATH. Can anyone suggest how to get the installer to find the virtualenv command?

like image 228
JEQP Avatar asked Oct 31 '25 11:10

JEQP


2 Answers

On the install scripts README there are steps that should resolve your scenario.

Try running:

pip uninstall -y virtualenv
pip install virtualenv
python .\aws-elastic-beanstalk-cli-setup\scripts\ebcli_installer.py

If this doesn't solve the issue some additional debugging will be necessary.

like image 87
Hal Carleton Avatar answered Nov 03 '25 01:11

Hal Carleton


The troubleshooting steps did not solve the problem completely, because my virtualenv script was not added to my environmental PATH settings. I had to add the directory ./Python/Python39/Scripts manually, then restart and it worked.

like image 21
NicoS Avatar answered Nov 03 '25 01:11

NicoS



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!