7 votes

Runtime Error: API_KEY not set

This can be easily solved by noting which terminal the export command was executed in the same terminal window that flask is running in (will be prompted to run in after the export command). Otherwise,...
4 votes

Error in pset6 API Key not set

Make sure you're running flask in the same terminal window in which you exported the keys.
1 vote

Runtime Error: API_KEY not set

If anyone is still having a problem to set API_KEY as an environmental variable, remember to do it following this syntax (in VSCODE terminal or powershell for WINDOWS): $env:API_KEY="YOUR-API-KEY-...

Only top scored, non community-wiki answers of a minimum length are eligible