AWS EC2 PYTHON PARTY
- THE GOOD: I got my python summarizer live on heroku.
- THE BAD: I really want it on AWS
- THE GOOD: I’ve gotten better at AWS!
- THE BAD: But apparently not good enough…
–
DOING THE THING:
- THE GOOD: Got a flask app up and running!
- THE BAD: It broke when I transfered my original summarizer app
- THE GOOD: I fixed this by changing
app.py
toapplication.py
(no joke) - THE BAD: It still doesn’t make external requests…
- THE GOOD: I fixed this by removing all security!! HELP ME.
- THE BAD: I still cannot download the NLTK accoutrements I need for my summarizer (like sentence tokenizer)
- THE GOOD: Apparently I can just ssh into my EB instance and download these right there!
- THE BAD: This is not as easy as it sounds (because I did my ssh permissionvia the terminal originally and just got a pub file)
- THE GOOD: Figured out how to make an instance and SSH into it!
- THE BAD: It is somehow running PYTHON 2.7 HOW.
sudo yum install python36
python3 -m pip install --user --upgrade pip
python3 -m pip install --user virtualenv
python3 -m virtualenv virt
source virt/bin/activate
pip3 install flask