powershell 无法识别 pipenv [英] pipenv is not recognized on powershell

查看:55
本文介绍了powershell 无法识别 pipenv的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我确保 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\

设置环境变量:

  1. 从您的文件中打开控制面板\系统和安全\系统探索者.
  2. 高级系统设置
  3. 环境变量...
  4. 选择路径并编辑
  5. 添加新行以包含上述路径.

Scripts 文件夹必须有一个类似

Scripts folder must have an entry like

验证运行 pipenv --version

To verify run pipenv --version

这篇关于powershell 无法识别 pipenv的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆