In the terminal, I have exported my API key the following way:
export ALPHAVANTAGE_KEY=XXXXXXXXXX
In the console, when I type 'env' I get amongst other things :
ALPHAVANTAGE_KEY=XXXXXXXXXX
But in my code, the following prints 'None' :
print(os.environ.get('ALPHAVANTAGE_KEY'))
Why is that ?