I like Python a lot, I began to learn and am amazed at its simplicity.

I am writing a bot telegram, I want to run it permanently on a Windows 2012 server. Do I need to install Python on this server and still download the whole bunch of libraries I used? Is there any other way?

And what if I have, for example, a bot running plus a couple of other programs, one of which, for example, scans the network and writes everything to the database, that is, how do I run several different applications on the server at the same time?

Closed due to the fact that the issue is too general for participants jfs , user194374, cheops , aleksandr barakin , Bald 1 Aug '16 at 4:05 .

Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • 2
    That you have not tried to go yet. And about the server, at the same time start exploring linux-like ones, you might also be pleasantly surprised by the ease of installing heaps of libraries. - Vladimir Gamalyan
  • @VladimirGamalian pip and on Windows there are binary wheels already for the vast majority of popular libraries. - Smit Johnth

2 answers 2

Good afternoon, try exploring the possibilities of virtualization and containers. The idea is that you can set up the environment once and then transfer the container to other systems. See technologies like vagrant and docker.

An alternative way is to create a recipe for setting up the environment for your needs, so that you only submit this recipe to the server, and such technologies as chef or puppet assume responsibility for configuration and installation.

    Good day!

    Specify the conditions of the problem. In general, the best option is to learn Linux. In it, this problem is solved once or twice. You can install Linux on a server with Windows. For this you need to use virtualization. From what comes to mind - virtualbox and hyper-v. Virtualbox is more suitable for desktop use - debugging, development, all sorts of experiments. In principle, it can also be used for servers, but not optimally. For server use, hyper-v is better suited. Do not be afraid - it is not so difficult.

    To run the program as a service under Windows, you can use the srv2any utility, which allows you to make a service out of any program.

    The windows server itself supports multitasking. There are no problems with this. The solution is to connect to the server by teamviewer and run the program in a session on the physical desktop or you can run the program in the RDP session (and then not close it), but these options are suitable for some very simple applications. And to ensure the smooth operation of the service, I recommend it to be properly designed from the beginning.

    • In order to use programs on python on Windows, you need to install Linux. The whole essence of fiton. - Smit Johnth