繁体   English   中英

pip 和 django-admin 在命令提示符下工作,但在 git ZD574D4BB40C848617691A694AZ9 终端中不工作

[英]pip and django-admin work in command prompt but not in git bash terminal

I have a windows 10, and when I try pip --version or django-admin --version in cmd, it works and I get the version number. When I try using pip or django-admin in my git bash terminal I get the error bash: pip: command not found.

所以我认为错误不是没有我的路径变量,因为pipdjango-admin在 cmd 中工作。 我怎样才能让它在我的 git bash 终端中工作?

我相信这将是您的路径变量,因为 git-bash 不一定知道 cmd 的路径。

作为替代方案,如果您使用 Windows 10,请尝试 Linux (WSL2) 的 Windows 子系统。 使用 Ubuntu18 和 VSCode,它运行良好,获得完整的 *NIX 体验。

暂无
暂无

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

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