Skip to content

Latest commit

 

History

History
40 lines (33 loc) · 1.71 KB

INSTALL.md

File metadata and controls

40 lines (33 loc) · 1.71 KB

Creating environment c:\anaconda3\envs\sentim

conda create -n sentim python=3 jupyter requests validators textblob

Installing extra packages

$ conda install -c conda-forge pytest
$ conda activate sentim
$ conda install -c conda-forge newspaper3k
$ conda install -c conda-forge nltk
$ conda install -c conda-forge boto3
$ pip install vaderSentiment
$ python -m ipykernel install
$ pip install aws-xray-sdk

PS: Some of the packages below, such as vaderSentiment, were used in our tests but not implemented in our final code

Installing Spacy package and objects

$ conda install -c conda-forge spacy
$ python -m spacy download en_core_web_sm
$ python -m spacy download en_core_web_md

Environment Variables

  • added 3 directories in the PATH variable:
    D:\Anaconda3 ; D:\Anaconda3\Scripts ; D:\Anaconda3\Library\bin
  • Included on the TOP of the PATH variable:
    c:\Anaconda3\envs\sentim =>> Python
    c:\Anaconda3\envs\sentim\Scripts =>> Pytest
    c:\Anaconda3\Scripts =>> Conda
  • Created a new Env variable to disable AWS_XRAY locally:
    AWS_XRAY_SDK_ENABLED = false

Pytest settings

Created PYTHONPATH environment variable pointing to the "src" directory for Pytest:
PYTHONTEST = "D:\AATechReturners\Sentimentalists\backend\SentimentalistsApp-Backend\src"
Included empty files "init.py" in the test and src directories (required for Pytest)

Created the file "setup.py" under the directory "SentimentalistsApp-Backend":

#!/usr/bin/env python3
from setuptools import setup, find_packages
setup(name="utils", packages=find_packages())