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

**URL:** <https://forum.codewithmosh.com/t/i-am-trying-to-add-my-directory-to-path-but-i-keep-getting-this-error/21414>\
**Category:** Python\
**Created:** [July 11, 2023, 9:49am UTC](https://forum.codewithmosh.com/t/i-am-trying-to-add-my-directory-to-path-but-i-keep-getting-this-error/21414 "2023-07-11T09:49:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simon\_lake](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@Simon\_lake](https://forum.codewithmosh.com/u/Simon_lake)\
**Post date:** [July 11, 2023, 9:49am UTC](https://forum.codewithmosh.com/t/i-am-trying-to-add-my-directory-to-path-but-i-keep-getting-this-error/21414/1 "2023-07-11T09:49:03Z")

</div>

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 …
- 

```auto
  + CategoryInfo : ObjectNotFound: (Env:Path:String) [], CommandNotFoundException
  + FullyQualifiedErrorId : CommandNotFoundException
```

---

<div class="post-metadata">

**Author:** ![phantasm](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@phantasm](https://forum.codewithmosh.com/u/phantasm)\
**Post date:** [July 13, 2023, 5:11pm UTC](https://forum.codewithmosh.com/t/i-am-trying-to-add-my-directory-to-path-but-i-keep-getting-this-error/21414/2 "2023-07-13T17:11:42Z")

</div>

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.  
Next  
Tick “Install for all users” \<----- this was what was making my install stick.

Seems to work now.

---

<div class="post-metadata">

**Author:** ![Simon\_lake](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@Simon\_lake](https://forum.codewithmosh.com/u/Simon_lake)\
**Post date:** [July 13, 2023, 5:29pm UTC](https://forum.codewithmosh.com/t/i-am-trying-to-add-my-directory-to-path-but-i-keep-getting-this-error/21414/3 "2023-07-13T17:29:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![phantasm](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@phantasm](https://forum.codewithmosh.com/u/phantasm)\
**Post date:** [July 16, 2023, 6:28pm UTC](https://forum.codewithmosh.com/t/i-am-trying-to-add-my-directory-to-path-but-i-keep-getting-this-error/21414/4 "2023-07-16T18:28:07Z")

</div>

Yeah,

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.
