Permission denied error in download nltk_data...

Steven D'Aprano steve at
Wed Aug 19 14:00:38 CEST 2015

On Wed, 19 Aug 2015 04:57 pm, Dwight GoldWinde wrote:

> Please helpŠ
> Using this code:
> import nltk
> I get this error:
>    os.mkdir(download_dir)
> PermissionError: [Errno 13] Permission denied:
> '/Users/dwightgoldwindex/nltk_data'

That's a permissions problem.

Firstly, when you run this code, are you logged in as the "dwightgoldwindex"
user? Note the "x" at the end of the directory name. Is that what you

Secondly, can you open a terminal and get a command line prompt? **NOT** a
Python prompt: if you see the prompt ">>>" type "quit()" and enter. You
should have a prompt $ or % or similar.

At the prompt, type:


ls -ld /Users/dwightgoldwindex/

ls -ld /Users/dwightgoldwindex/nltk_data

and hit Enter after each line. What results do you get?


More information about the Python-list mailing list