在 windows 上找不到 virtualenv 安装命令

virtualenv install command not found on windows

我有一个 windows machine(我知道,我一直在努力让工作让我 mac)

我安装了python,我安装了pip

我尝试安装 virtualenv

我正在使用 git bash(因为它的界面很好,就像 linux 终端一样工作)

当我pip install virtualenv

pip install virtualenv 
Requirement already satisfied: virtualenv in c:\users\christopherjakob\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (20.13.0)

当我使用 venv

时相同

但是当我尝试创建一个 virutalenv

virtualenv secretsManagerMCE-IMPL-LAMBDA
bash: virtualenv: command not found

我一直在搜索,但我不知道修复方法是什么。我看过类似的堆栈溢出帖子,但其中 none 讨论在 windows

上开发

以下命令适用于 Windows:

python -m venv ./venv

https://docs.python.org/3/tutorial/venv.html