我使用pip install pipenv
安装了pipenv
,没有问题
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
时,我得到了以下错误:
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
在环境变量的路径中,但仍然得到这个错误
与此类似的常见错误解决方案是将脚本文件夹的路径添加到路径中,然后重新启动powershell会话
路径应该如下所示:
C:\Users\user\AppData\Local\Programs\Python\Python37\Scripts
相关问题 更多 >
编程相关推荐