Windows 10
我目前的PowerShell基础环境
PS C:\Users\micah\Dev\try-zappa> pip freeze
certifi==2018.11.29
pipenv==2018.11.26
virtualenv==16.4.0
virtualenv-clone==0.5.1
当我运行pipenv shell
时,它会带我进入我的新环境。
PS C:\Users\micah\Dev\try-zappa> pipenv shell
Launching subshell in virtual environment…
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS C:\Users\micah\Dev\try-zappa> pip freeze
argcomplete==1.9.3
awacs==0.8.2
awscli==1.16.106
boto3==1.9.96
botocore==1.12.96
certifi==2018.11.29
cfn-flip==1.1.0.post1
但是,只要查看命令行,我就会看到PS C:\Users\micah\Dev\try-zappa>
而不是描述性的东西,它向我显示我的环境是活跃的,就像你使用pip并激活一个环境一样。 (例如(try-zappa) PS C:\Users\micah\Dev\try-zappa>
有谁知道怎么打开它?我讨厌认为我在一个环境中,但实际上在另一个环境中。
我现在无法证实我的假设,但是:
pipenv
本身不会在一个shell中更改命令提示符