{"id":1108,"hash":"6e9c1828cc454e550396847ec1819fbeced9a6e79daa7d636bdb2851098c356d","pattern":"Windows reports error when trying to install package using pipenv","full_message":"I installed pipenv by following the instructions here.  From the Windows command prompt I ran\n\npip install --user pipenv\n\nwhich returned the message\n\nSuccessfully installed pipenv-5.3.3\n\nNow I want to install the requests package using pipenv, so I ran\n\npipenv install requests\n\nbut this returned\n\n'pipenv' is not recognized as an internal or external command,\noperable program or batch file.\n\nI have added the path\n\nC:\\Users\\Robert\\AppData\\Roaming\\Python\\Python35\\site-packages\n\nto my Windows path environment variable, but I still receive the same error.\nHow can I install the requests package using pipenv?\n\nEDIT:  As I have remnants of Python 3.5 and Python 3.6 on my system, I'm going to uninstall everything and start anew.  (I've just started learning Python and I want to keep this as simple as possible.)","ecosystem":"pypi","package_name":"pip","package_version":null,"solution":"I have a similar setup and faced a similar problem, but the solution I found was fairly simple. All of my PATH variables were already correct (from Python 3 the Windows Installer automatically does all of this).\n\nThe problem\nThe problem actually arises because of conflicting installations of virtualenv.\n\nFix\nTo address this problem you need to simply run the following commands:\n\nFirst, remove your current version of virtualenv: pip uninstall virtualenv\n\nThen, remove your current version of pipenv: pip uninstall pipenv\n\nWhen you are asked Proceed (y/n)? just enter y. This will give you a clean slate.\n\nFinally, you can once again install pipenv and its dependencies: pip install pipenv\n\nThis will also install the latest version of virtualenv.\n\nTesting if it worked\nJust enter pipenv --version in the command prompt and you should see the desired output.\n\nNotes\nI know this sounds the mundane, but it is actually the solution for Windows systems. You do not need to modify any of your system environment variables (please do not add site-packages to your environment variables).","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/46041719/windows-reports-error-when-trying-to-install-package-using-pipenv","votes":49,"created_at":"2026-04-19T04:52:22.551704+00:00","updated_at":"2026-04-19T04:52:22.551704+00:00"}