I am trying to deploy my Python project to AWS Lambda using Zappa and circleci.
its throwing error Error: Zappa requires an active virtual environment!
#!/bin/bash -eo pipefail
zappa update dev
(PyYAML 3.13 (/usr/local/lib/python3.6/site-packages), Requirement.parse('PyYAML>=4.1'), {'cfn-flip'})
Calling update for stage dev..
Error: Zappa requires an active virtual environment!
Learn more about virtual environments here: http://docs.python-guide.org/en/latest/dev/virtualenvs/
Exited with code 1
I am installing venv using the below commands.
pip install virtualenv
virtualenv venv
source venv/bin/activate
Is there something that I am missing. Could someone help me.
I had to do install zappa , virtualenv using pip3 and then activate it.
sudo pip install zappa
sudo pip3 install virtualenv
virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements.txt
zappa update dev