我正在使用一个 MEAN 堆栈应用程序,它将文件传递给 python 脚本,这个脚本执行一些任务,然后返回一些结果。问题是,当我部署它时如何安装所需的 python 包?
谢谢!
我尝试使用 python shell 在 nodejs 应用程序中运行 python 代码。
在部署期间,在 requirements.txt 上调用 pip install ,它应该为您安装包。
您可以像使用 inbuild child_process 模块或 python-shell 的任何 shell 命令一样从 nodejs 调用 python 脚本。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句