Member-only story
How to resolve “ERROR: Could not find and “virtualenv” installed. Ensurevirtualenv is installed and that it is in PATH before executingthis script”
When you are trying to install Amazon Elastic Beanstalk CLI in Mac, you may encounter a following error:
“ERROR: Could not find and “virtualenv” installed. Ensurevirtualenv is installed and that it is in PATH before executingthis script.”
To resolve this, you need to install virtualenv.
Best way to do is to use pip, but you may get a nested error like this if you just do pip install virtualenv or sudo /usr/bin/easy_install virtualenv
…
File “/usr/bin/easy_install”, line 13, in <module>
load_entry_point(‘setuptools==41.0.1’, ‘console_scripts’, ‘easy_install’)()
File “/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py”, line 2316, in main
…
To resolve, you need to uninstall first with pip uninstall virtualenv. Then, run in sudo with sudo pip install virtualenv. That should solve your problem.