AttributeError: module 'nltk' has no attribute 'download
See original GitHub issue#code
import nltk
nltk.download()
Traceback (most recent call last):
File "nltk.py", line 2, in <module>
import nltk
File "/Users/antonionogueras/Desktop/NLTK/nltk.py", line 10, in <module>
nltk.download()
AttributeError: module 'nltk' has no attribute 'download'
Specs: Mac, High Sierra, Python 3.6
Issue Analytics
- State:
- Created 6 years ago
- Comments:16 (6 by maintainers)
Top Results From Across the Web
AttributeError: module 'nltk' has no attribute 'download'
No matter what I try to access or how I write it, I always get an attribute error saying nltk has no attribute...
Read more >NLTK Download Attribute error - Python Forum
Hello all, I'm having a problem downloading NLTK. This is my first time downloading ... AttributeError: module 'nltk' has no attribute 'py'.
Read more >AttributeError: 'module' object has no attribute 'internals'
Dear nltk-users, I just started out with Python and NLTK on the Macintosh (OS 10.5.8). I installed Mac Python with no problem. I...
Read more >attributeerror: module 'nltk' has no attribute 'download'
Command line installation¶. The downloader will search for an existing nltk_data directory to install NLTK data. If one does not exist it will...
Read more >AttributeError: module 'nltk' has no attribute 'download
AttributeError : module 'nltk' has no attribute 'download. nltk. 17 February 2018 Posted by 2hands10fingers. #code import nltk nltk.download()
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Please rename your file from
nltk.pyto something else, e.g.my_nltk_script.py. Then rerun the script. Please seeAlso, normally you shouldn’t be downloading the NLTK data downloads in a script, unless it’s an interactive jupyter notebook or interactive interpreter.
sudo /Applications/Python\ 3.6/Install\ Certificates.commandDid the trick! I was definitely using Python 3.6. Thank you!