简体   繁体   English

如何管理一堆python程序

[英]How to manage a bunch of python programs

I have a lot of python programs that run on an old Ubuntu laptop to sync inventory feeds, track sales, and similar stuff where I work. 我有很多在旧的Ubuntu笔记本电脑上运行的python程序,用于同步库存提要,跟踪销售以及我工作的类似地点。 If I ever have to restart the computer for one reason or another I have to open a bunch of shells and restart each program individually. 如果由于某种原因不得不重新启动计算机,则必须打开一堆外壳,然后分别重新启动每个程序。

I was wondering if there is a good way to manage all these programs? 我想知道是否有一种好的方法来管理所有这些程序? I prefer them to each run in there own terminal as they print updates about what they are doing and errors that they may encounter (the errors are emailed to me as well). 我希望他们每次都在自己的终端中运行,因为他们会打印关于他们正在做的事情和可能遇到的错误的更新(错误也会通过电子邮件发送给我)。

I'm not really a "professional" programmer. 我不是一个真正的“专业”程序员。 I got hired on to do things like this by hand and just happened to know enough python to automate it. 我被雇来手工做这样的事情,只是碰巧知道足够的Python来自动化它。 If I need to learn how to use some kind of server or should learn another language I'm fine with that I just need pointed in the right direction. 如果我需要学习如何使用某种服务器,或者应该学习另一种语言,那么我只需要指出正确的方向即可。 Thanks! 谢谢!

Installing packages into a virtual environment - In an activated virtual environment, you'll have a command pip that you'll use to install, update, and remove packages. 在虚拟环境中安装软件包-在激活的虚拟环境中,您将具有一个命令pip ,用于安装,更新和删除软件包。 Of course, pip has all sorts of options and other features, which you can read about in the pip documentation but overall its great for efficient code management 当然,pip具有各种选项和其他功能,您可以在pip文档中阅读这些内容,但是总体而言,它对有效的代码管理非常有用

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

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