This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hey all, I am having a really hard time getting the right packages installed/imported. A coworker suggested to download/install anaconda to get around this and just get a bunch of the most popular packages. So I did that and entered "which python" in Terminal and it said
/Users/myname/opt/anaconda3/bin/python
which leads me to believe I installed it properly? When I type import pandas from the Terminal, it doesn't give me any errors. However, when I open IDLE and try to start a new script with import pandas or import nltk, I get the following error
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import nltk
ModuleNotFoundError: No module named 'nltk'
... I imagine this is because I have several versions of python installed? I'm really struggling here to figure out what's wrong. Any guidance is highly appreciated. I was on a roll with some basic programs(magic 8 ball, printing 99 bottles of beer on the wall, coin estimator by weight) but now have hit a wall with this while trying to import NLTK to help with creating a MadLib story. (https://docs.google.com/document/d/1TyqD2_oDtiQIh_Y55J5RfeA91JJECc97xYIKM112H9I/edit)
Subreddit
Post Details
- Posted
- 5 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/learnpython...