Installation Guide

Welcome to Poetic (poetic-py on PyPi). Please see below for installation details.

Pip

System-wide installation:

pip install poetic-py
python -c "import nltk; nltk.download('punkt')"

The usage of virtualenv is also recommended over system-wide installation.

Supported Package Versions

Python

  • 3.6

  • 3.7

  • 3.8

Note: Newer versions depend on dependencies.

Dependencies

  • tensorflow >= 2

  • nltk

  • gensim

Troubleshooting

Pip Dependency Issues

If dependencies become an issue, try installing them separately from poetic:

pip install tensorflow
pip install gensim
pip install nltk

pip install poetic-py --no-deps
python -c "import nltk; nltk.download('punkt')"

If this does not solve the problem or there is any other unforeseeable problems, please head to our Issue Tracker and hopefully I can help you out!

Pip Caching

Pip, by default, caches downloads, which may result in downloading previously installed versions and leading to failure to upgrade. To address this, use the flag:

pip install --no-cache-dir poetic-py

Python 3.8 for Gensim on Conda

Current gensim builds from Anaconda’s default channel do not work with python 3.8. If you are using python 3.8 and are unable to install poetic-py from conda because of this issue, use one of the two solutions from below until gensim has been updated:

conda install -c kevin931 poetic-py -c anaconda -c conda-forge

Or, this following option will be more specific:

conda install -c conda-forge gensim
conda install -c kevin931 poetic-py