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:closed
  • Created 6 years ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

28reactions
alvationscommented, Feb 19, 2018

Please rename your file from nltk.py to something else, e.g. my_nltk_script.py. Then rerun the script. Please see

Also, normally you shouldn’t be downloading the NLTK data downloads in a script, unless it’s an interactive jupyter notebook or interactive interpreter.

5reactions
2hands10fingerscommented, Feb 21, 2018

sudo /Applications/Python\ 3.6/Install\ Certificates.command

Did the trick! I was definitely using Python 3.6. Thank you!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found