Can't find virtualenv installation during eb-cli setup

3k Views Asked by At

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?

4

There are 4 best solutions below

1
On BEST ANSWER

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.

0
On

CMD x Shell

For those using windows, in prompt doesn't work but in shell does!

0
On

On Debian/Ubuntu you can try:

sudo apt install python3-virtualenv
0
On

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.