# How to fix error 'pipenv' is not recognized as an internal or external command, operable program or batch file

**URL:** <https://forum.codewithmosh.com/t/how-to-fix-error-pipenv-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/212>\
**Category:** Python\
**Created:** [October 25, 2020, 7:51pm UTC](https://forum.codewithmosh.com/t/how-to-fix-error-pipenv-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/212 "2020-10-25T19:51:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rarapapa](https://avatars.discourse-cdn.com/v4/letter/r/8797f3/32.png) [@rarapapa](https://forum.codewithmosh.com/u/rarapapa)\
**Post date:** [October 25, 2020, 7:51pm UTC](https://forum.codewithmosh.com/t/how-to-fix-error-pipenv-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/212/1 "2020-10-25T19:51:08Z")

</div>

how to fix error ‘pipenv’ is not recognized as an internal or external command, operable program or batch file

---

<div class="post-metadata">

**Author:** ![uniman49](https://avatars.discourse-cdn.com/v4/letter/u/db5fbb/32.png) [@uniman49](https://forum.codewithmosh.com/u/uniman49)\
**Post date:** [October 30, 2020, 1:47pm UTC](https://forum.codewithmosh.com/t/how-to-fix-error-pipenv-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/212/2 "2020-10-30T13:47:04Z")

</div>

If you haven’t already figured it out, you have to install pipenv with pip.  
On a mac it’s pip3 & pip on windows. In the terminal type: pip install pipenv

---

<div class="post-metadata">

**Author:** ![chilledblitz](https://avatars.discourse-cdn.com/v4/letter/c/58956e/32.png) [@chilledblitz](https://forum.codewithmosh.com/u/chilledblitz)\
**Post date:** [September 14, 2021, 8:23pm UTC](https://forum.codewithmosh.com/t/how-to-fix-error-pipenv-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file/212/3 "2021-09-14T20:23:05Z")

</div>

1. First, remove your current version of virtualenv: pip uninstall virtualenv
2. Then, remove your current version of pipenv: pip uninstall pipenv
3. When you are asked Proceed (y/n)? just enter y. This will give you a clean slate.
4. Finally, you can once again install pipenv and its dependencies: pip install pipenv
5. Check installation with pipenv --version
