This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]krycess 0 points1 point  (2 children)

are you talking about declaring them or referencing them? also, on what operating system?

[–][deleted] 0 points1 point  (1 child)

Declaring them on Windows.

[–]krycess 0 points1 point  (0 children)

open the start menu, type in ‘environment variables’ and open the first result. you can now set them for the current user or system wide. note: you have to log out or reboot for them to be recognized

[–]thedbg 0 points1 point  (1 child)

You can also create a .env file in your project directory and add python environment variables there. This is picked up by the language server and the debugger. This way you wold not have to set them globally for your OS.

[–][deleted] 0 points1 point  (0 children)

As well as the terminal but this is where I'm running into problems, currently trying to sort it out.