我正在尝试安装Django的debug_toolbar行分析器。根据the docs,我需要安装Mercurial。
我已经在我的Windows机器上安装了Mercurial,当我在项目的虚拟环境之外的命令提示符下输入hg时,它看起来正常。问题是,当我在虚拟环境中输入相同的命令时,它会抛出一个错误:
ERROR: Error [WinError 2] The system cannot find the file specified while executing command hg clone --noupdate -q https://bitbucket.org/kmike/line_profiler 'c:\[user]\environments\[project]\src\line-profiler'
ERROR: Cannot find command 'hg' - do you have 'hg' installed and in your PATH?我该怎么解决这个问题呢?最终目标是安装line_profiler
发布于 2019-11-05 22:16:56
ERROR: Cannot find command 'hg' - do you have 'hg' installed and in your PATH?
关键是这个错误消息。你的Windows path中有hg.exe的路径吗?你的“虚拟环境”到底是什么意思?
在我看来,在Windows上运行mercurial最简单的方法就是使用。
然后,您不必担心添加路径,只需安装mercurial via即可
scoop install mercurial你就完了。
https://stackoverflow.com/questions/58549945
复制相似问题