我正在使用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
关于python - pipenv shell在虚拟环境中启动子shell… 'powershell.exe'无法识别为内部或外部命令,可操作程序或,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60072898/