首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >pipenv :术语“pipenv”未被识别为cmdlet的名称

pipenv :术语“pipenv”未被识别为cmdlet的名称
EN

Stack Overflow用户
提问于 2020-07-22 02:29:20
回答 1查看 2K关注 0票数 0

我使用pip install pipenv安装了pipenv,没有任何问题。

代码语言:javascript
复制
PS D:\GitHub\newhome.ca> pip install pipenv
Requirement already satisfied: pipenv in c:\users\hustler\appdata\roaming\python\python37\site-packages (2020.6.2)
Requirement already satisfied: virtualenv in c:\users\hustler\appdata\roaming\python\python37\site-packages (from pipenv) (20.0.27)
Requirement already satisfied: certifi in c:\users\hustler\appdata\roaming\python\python37\site-packages (from pipenv) (2020.6.20)
Requirement already satisfied: virtualenv-clone>=0.2.5 in c:\users\hustler\appdata\roaming\python\python37\site-packages (from pipenv) (0.5.4)
Requirement already satisfied: pip>=18.0 in c:\program files\python37\lib\site-packages (from pipenv) (18.1)
Requirement already satisfied: setuptools>=36.2.1 in c:\program files\python37\lib\site-packages (from pipenv) (40.6.2)
Requirement already satisfied: importlib-metadata<2,>=0.12; python_version < "3.8" in c:\users\hustler\appdata\roaming\python\python37\site-packages (from virtualenv->pipenv) (1.7.0)
Requirement already satisfied: six<2,>=1.9.0 in c:\users\hustler\appdata\roaming\python\python37\site-packages (from virtualenv->pipenv) (1.15.0)
Requirement already satisfied: distlib<1,>=0.3.1 in c:\users\hustler\appdata\roaming\python\python37\site-packages (from virtualenv->pipenv) (0.3.1)
Requirement already satisfied: appdirs<2,>=1.4.3 in c:\users\hustler\appdata\roaming\python\python37\site-packages (from virtualenv->pipenv) (1.4.4)
Requirement already satisfied: filelock<4,>=3.0.0 in c:\users\hustler\appdata\roaming\python\python37\site-packages (from virtualenv->pipenv) (3.0.12)
Requirement already satisfied: zipp>=0.5 in c:\users\hustler\appdata\roaming\python\python37\site-packages (from importlib-metadata<2,>=0.12; python_version < "3.8"->virtualenv->pipenv) (3.1.0)
You are using pip version 18.1, however version 20.2b1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

正如你在上面看到的,但是当我运行pipenv --version时,我得到了这个错误:

代码语言:javascript
复制
PS D:\GitHub\newhome.ca> pipenv --version

pipenv : The term 'pipenv' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:1
+ pipenv --version
+ ~~~~~~
    + CategoryInfo          : ObjectNotFound: (pipenv:String) [], CommandNotFoundExcepti
   on
    + FullyQualifiedErrorId : CommandNotFoundException

我还在环境变量的路径中添加了pipenv的路径,即c:\users\hustler\appdata\roaming\python\python37\site-packages\pipenv,但仍然得到这个错误。

EN

回答 1

Stack Overflow用户

发布于 2020-07-22 02:50:04

对于与此类似的错误,一种常见的解决方案是将脚本文件夹的路径添加到路径中,然后重新启动powershell会话。

路径应如下所示:C:\Users\user\AppData\Local\Programs\Python\Python37\Scripts

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63020890

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档