datadesk/census-data-downloader

API key. Windows 'export' is not recognized as an internal or external command, operable program or batch file.

giordafrancis opened this issue · 1 comments

Hi there I'm unable to activate the API key on windows CMD.
I've tried

export CENSUS_API_KEY=......

Also to no avail below command. As is states API key not present.

censusdatadownloader --year 2018 --data-dir data/external/ race counties

Where should I add the API key in the query above?

I struggled with this for a few hours myself. If you are using the cmd prompt and a package like Anaconda3, try:

set CENSUS_API_KEY=

this will permanently set the variable CENSUS_API_KEY in your environment. I use Anaconda3 and this worked perfectly