I am trying to add my directory to path but i keep getting this error

I have tried looking at other peoples issues and managed to find the path but now i cant add it. please help

PS C:\masters\all_python_tutorial_stuff\pythonPdf> Env:Path += “;C:\Users\simon\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages pip”
Env:Path : The term ‘Env:Path’ 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:Path += ";C:\Users\simon\AppData\Local\Packages\PythonSoftwareFou …
  •   + CategoryInfo          : ObjectNotFound: (Env:Path:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException

Try this:

Either Uninstall Python completely and reinstall or select modify.

When installing fresh, make sure “add Python to path” is selected.
Select “Customize Installation” tick on all boxes.
Tick “Install for all users” <----- this was what was making my install stick.

Seems to work now.

Thanks. I dont remember seeing that option but remember mosh doing it. Anyway i got help and managed to add the path.


It’s hidden in the customization menu. You won’t see it if you go next, next.

It pops up again if you try to reinstall and choose “repair”

Adds the path for you.

Great to hear you got it working.