简体   繁体   English

如何在 Windows 中运行 python 模块

[英]How to run python module in Windows

I need to run this in Windows Power Shell or command line我需要在 Windows Power Shell 或命令行中运行它

poker_ai.terminal.runner --agent offline --pickle_dir ./research/blueprint_algo --strategy_path ./research/blueprint_algo/offline_strategy_285800.gz --debug_quick_start 

but dont know how to change the "--" and where "()" is required.但不知道如何更改“--”以及需要“()”的位置。

I can see poker_ai.terminal.runner is imported as a module.我可以看到 poker_ai.terminal.runner 作为模块导入。

I am trying something like this and get the error followed我正在尝试这样的事情并得到错误

poker_ai.terminal.runner('agent="offline"') Traceback (most recent call last): File "", line 1, in TypeError: 'module' object is not callable poker_ai.terminal.runner('agent="offline"') 回溯(最近一次调用最后一次):文件“”,第 1 行,类型错误:“模块”对象不可调用

我可以从 Windows Power Shell 运行它:

python -m poker_ai.terminal.runner --agent offline --pickle_dir ./research/blueprint_algo --strategy_path ./research/blueprint_algo/offline_strategy_285800.gz --debug_quick_start 

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

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