If I pip install tltk and immediately try to import it, it will fail, complaining that matplotlib is not installed. After installing matplotlib, it will work. matplotlib should be added as a dependency in setup.py.
python3 -m venv tltk
cd tltk
. bin/activate
pip install tltk
python
import tltk
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/private/tmp/tltk/lib/python3.7/site-packages/tltk/__init__.py", line 2, in <module>
from tltk import corpus
File "/private/tmp/tltk/lib/python3.7/site-packages/tltk/corpus.py", line 21, in <module>
import matplotlib
ModuleNotFoundError: No module named 'matplotlib'
exit()
pip install matplotlib
python
import tltk
success
If I pip install tltk and immediately try to import it, it will fail, complaining that matplotlib is not installed. After installing matplotlib, it will work. matplotlib should be added as a dependency in setup.py.
success