powershell 无法识别 pipenv [英] pipenv is not recognized on powershell
问题描述
我确保 pipenv
安装在以下路径 C:\Users\Owner>pip安装pipenv
I made sure pipenv
was installed in the following path C:\Users\Owner> pip install pipenv
然后得到如下回复:
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.
推荐答案
似乎您的 PATH 环境变量中没有 pipenv.
Seems you don't have pipenv in your PATH environment variable.
你应该检查你的python安装位置,例如我将它安装在 C:\Users\userName\AppData\Local\Programs\Python\Python38-32
You should check for your python install location e.g. I have it installed at C:\Users\userName\AppData\Local\Programs\Python\Python38-32
包括python_install_location\Scripts"在您的 PATH 环境变量中.例如
Include "python_install_location\Scripts" in your PATH environment variable. e.g.
C:\Users\userName\AppData\Local\Programs\Python\Python38-32\Scripts\
C:\Users\userName\AppData\Local\Programs\Python\Python38-32\Scripts\
设置环境变量:
- 从您的文件中打开控制面板\系统和安全\系统探索者.
- 高级系统设置
- 环境变量...
- 选择路径并编辑
- 添加新行以包含上述路径.
Scripts 文件夹必须有一个类似
Scripts folder must have an entry like
验证运行 pipenv --version
To verify run pipenv --version
这篇关于powershell 无法识别 pipenv的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!