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.
Conda (Recommended)¶
Or, using conda
(which I recommend):
conda install -c kevin931 poetic-py
python -c "import nltk; nltk.download('punkt')"
A few notes on Conda:
If you need documentation on how to get conda working/set up, this is a good guide.
There is a potential bug with tensorflow on Conda for Windows because of maximum path length limitation. If you are unable to install tensorflow from conda, please open an issue or refer to tensorflow’s github Issue Tracker for support. For reference, you can also refer to Microsoft’s guide . (Caution: Editing registry can have serious consequences. Please proceed with caution and be sure to know the issue.)
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