[英]Error while executing custom commands to run python plugin in windows
I am trying to install a model management framework over python. 我正在尝试通过python安装模型管理框架 。 I have python 3.6 and windows 8.1 .
我有python 3.6和Windows 8.1 。 I was able to successfully install the plugin.
我能够成功安装插件。 However, when I try to start the visualizer using the
studio ui
command, I get 'studio' is not recognized as an internal or external command
但是,当我尝试使用
studio ui
命令启动可视化程序时,我无法将'studio' is not recognized as an internal or external command
Most of the resources I have checked online show the installation on linux where this works, how do I get this to work on windows? 我在网上检查的大多数资源都显示了在Linux上可以正常运行的安装,如何在Windows上运行?
I feel like I am missing something very basic here. 我觉得这里缺少一些非常基本的东西。
Kind of figured it out. 有点想通了。 Apparently setuptools has the provision for specifying entry points.
显然,setuptools具有指定入口点的规定。 Sample file:
样本文件:
[console_scripts]
mlflow=mlflow.cli:cli
When pip (or another console_scripts aware installer) installs the distribution, it will create a command-line wrapper for each entry point.
当pip(或另一个知道console_scripts的安装程序)安装发行版时,它将为每个入口点创建一个命令行包装。
So that if we type mlflow on the command line, it is automatically recognized. 这样,如果我们在命令行上键入mlflow,它将被自动识别。
So now I am able to run it by running the actual cli.py file with arguments, still need to figure out why this failed on my PC though. 因此,现在我可以通过运行带有参数的实际cli.py文件来运行它,但仍然需要弄清楚为什么这在我的PC上失败了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.