'.env export doesn't work - Declaration or Statement expected

I am having trouble to read my .env variables as "export" doesn't work.

This is the project/video I am basing my code on: https://github.com/PatrickAlphaC/erc20-brownie

In order to deploy the contracts on a testnet I need to save my Project ID and Private Key in a .env file :

enter image description here

Results in this:

enter image description here

Did I do anything wrong when installing dotenv? I used: pip install python-dotenv

This might be quite a trivial question! Sorry very knew to vscode and solidity.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source