'pipx install gvsbuild'成功,但不会在PowerShell中运行"gvsbuild build gtk3"



我正在遵循github页面上的步骤,并在这一步。

在我的系统中搜索'gvsbuild'。

Windows PowerShell

尝试:gvsbuild build gtk3;期待gtk3建成。结果:

gvsbuild : The term 'gvsbuild' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ gvsbuild build gtk3
+ ~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (gvsbuild:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

听起来pipx不在你的路径上,所以当你安装gvsbuild这样的命令时,PowerShell找不到它。

安装pipx时,运行pipx ensurepath后需要重启PowerShell。

ensurepath命令添加AppDataRoamingPythonPython3xScripts和%USERPROFILE%。本地bin文件夹到您的搜索路径。但是,这些更改可能要等到您重新启动shell后才能进行。

最新更新