Reputation: 131
I made sure pipenv
was installed in the following path C:\Users\Owner> pip install pipenv
Then got the following response:
Requirement already satisfied: setuptools>=36.2.1 in c:\users\owner\appdata\local\programs\python\python36-32\lib\
ackages (from pipenv) (39.0.1)
Requirement already satisfied: pip>=9.0.1 in c:\users\owner\appdata\local\programs\python\python36-32\lib\site-pac
(from pipenv) (20.1)
Requirement already satisfied: virtualenv-clone>=0.2.5 in c:\users\owner\appdata\roaming\python\python36\site-pack
from pipenv) (0.5.4)
Requirement already satisfied: virtualenv in c:\users\owner\appdata\roaming\python\python36\site-packages (from pi
(16.0.0)
Requirement already satisfied: certifi in c:\users\owner\appdata\roaming\python\python36\site-packages (from pipen
20.4.5.1)
After that, I tried to set it up in a specific directory. And, then I got the following message.
PS C:\Users\Owner\desktop\Python\Pyprojects> pipenv install
The term 'pipenv' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
ling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:7
+ pipenv <<<< install
+ CategoryInfo : ObjectNotFound: (pipenv:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Before, it kept saying that I didn't have the wheel set up. So, I installed that. But, now I get the above mentioned error messages. How can I resolve this? Thanks for your help.
Upvotes: 12
Views: 29135
Reputation: 1
I uninstalled pipenv than I reinstalled as an administrator
pip uninstall virtualenv
pip uninstall pipenv
open the terminal as an administrator
pip install pipenv
Upvotes: 0
Reputation: 71
I simply restarted my computer after finding the pipenv.py file in the correct directory (/Scripts) and adding it to the environment variable path, and now pipenv works wonderfully on my Windows PC! Restarting will allow your computer to update your environment variables that you adjusted in the control panel.
Upvotes: 4
Reputation: 697
Something I had an issue with as well and my script folder was in the PATH variables list. I found uninstalling virtualenv -
pip uninstall virtualenv
Then removing pipenv as well
pip uninstall pipenv
then reinstalling pipenv
pip install pipenv
Solved it for me.
Upvotes: 5
Reputation: 3241
The default Scripts
installation location is not added to the path by default. A more generic addition you can make is %USERPROFILE%\AppData\Roaming\Python\Python38\Scripts
. Change the Python version to what you currently use as a default Python version in your path.
Upvotes: 0
Reputation: 1973
If you type in "pip install pipenv" in your terminal, the terminal will tell you the location of your pipenv file; it is usually in the first line. Make sure to follow that location, then copy it and add to PATH environment.
I found pipenv under this location : C:\Users"UserName"\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts
Upvotes: 3
Reputation: 131
Seems you don't have pipenv in your PATH environment variable.
You should check for your python install location e.g. I have it installed at C:\Users\userName\AppData\Local\Programs\Python\Python38-32
Include "python_install_location\Scripts" in your PATH environment variable. e.g.
C:\Users\userName\AppData\Local\Programs\Python\Python38-32\Scripts\
To set your environment variable:
Scripts folder must have an entry like
To verify run pipenv --version
Upvotes: 12