I am still somewhat new to Python programming. Having read the contributions to this topic, I am still stuck:
I have Python 3.7.4 installed (with Homebrew) on OS X 10.14. In terms of the path everything looks fine:
which python3
/usr/local/bin/python3I installed nltk with pip, using:
sudo pip3 install nltkHowever, when I run python Python 3.7 and enter
import nltkit says
Module not found error: No module named 'nltk' Any help would be greatly appreciated as I can't find any solutions that will work on my Mac.
1 Answer
I found the solution on this website. All I needed to do was to install nltk without sudo, so just
pip3 install -U nltk If anyone has wisdom to share why this might work, I'd still greatly appreciate it!
1