繁体   English   中英

pipenv shell 在虚拟环境中启动子shell…“powershell.exe”不是内部或外部命令,也不是可运行的程序或

[英]pipenv shell Launching subshell in virtual environment… 'powershell.exe' is not recognized as an internal or external command, operable program or

我使用的是 Windows 10 和 Visual Studio Code 终端(但我也尝试过 Windows Powershell)。

这是我的位置: PS C:\\Users\\MyUsername\\Desktop\\MyProjectFolder>

这是成功的: pip install --user pipenv

这是成功的: pipenv install django

最后我收到消息:

To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.

所以我运行: pipenv shell并只得到这个消息:

Launching subshell in virtual environment…
'powershell.exe' is not recognized as an internal or external command,
operable program or batch file.

我搜索了重复的问题,但找不到任何有用的东西。

将 PATH 变量更改为 cmd.exe(位于 system32 文件夹中)

然后使用命令 {pipenv location} shell

这应该可以解决问题。

XD

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM