0
I’m trying to use tld https://pypi.org/project/tld/ and I can’t use it in python3, only in python 2.7, which doesn’t suit me, since my whole project is in python3. The documentation says it is compatible with python3.5 which is what I’m using. What could be the problem?
Traceback (most recent call last):
File "sufixo.py", line 1, in <module>
from tld import get_tld
ImportError: No module named 'tld'
It is possible that the first
pip
in your PATH be thepip
of 2.7. If this is the case, thenpip install xyz
will always install only pro Python 2.7. Try runningpython3 -m pip install tld
and see if it works.– Pedro von Hertwig Batista
That’s right. Thank you very much.
– Antony Leme
Try using the Pip install tld command on the powershell or terminal. Works perfectly with python 3 installed with anaconda.
– Dalisson Figueiredo
Tries:
pip3 install tld
– JJoao