2

I am new to coding and I am learning about environment variables in python using pycharm. I am trying to hide my API KEY in the terminal for basic security however when I type env into the terminal this is the response.

env : The term 'env' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

  • env
  •  + CategoryInfo : ObjectNotFound: (env:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException 

How can I fix this? How can I fix the path or find the path?

1
  • are you just trying to find out the current environment variables? try SET Commented Jun 27, 2022 at 17:27

1 Answer 1

3

env is not a program installed by default on Windows, you're probably thinking of the env command commonly used on Linux and Unix based systems to display your environment. The equivalent Windows command is Get-ChildItem Env: for PowerShell, and SET in command prompt (Thanks @ᴓᴓᴓ!)

Sign up to request clarification or add additional context in comments.

2 Comments

Get-ChildItem Env: in powershell and SET in cmd stackoverflow.com/questions/5327495/…
thanks for the response crock I will check it out!

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.