How to Install Python Modules Offline

One of the advantages that Python has is the possibility of installing modules in a quick and simple way by downloading it from an online repository, in a model very similar to how rpm packages work in Linux. An example would be the following;

pip install request

The problem is that many times, mainly due to security policies, we cannot download offline modules because internet access is restricted. In this case the offline option is the only one we have left. Basically we would have to find the module we need for our development or project and download the .whl file. We must pay attention first to the version of Python that we are running and then to the version of the operating system and in its case if it is for 32 or 64 bits.

Once we have downloaded the .whl file that we need, we must copy it to the machine where we want to use it. And once we have it, we can install it with the following command, where we specify the path of the .whl file;

py -3.6 -m pip install \usr\anavarror\module.whl

 

HTH – Antonio NAVARRO

 

 

Example of a Timer Programmed in Pro*c

The other day I had to program a timer that jumps every x seconds. I had several ways to do it, maybe the first option would have been a job. In my case I need it to run very often and as fast. Okay, light lightweight jobs could help. But for the steps that I do later and a series of controls I am more interested as Pro*c. Besides, it could also be used as a high frequency algorithm, several times per second, conditioned by the execution time of the stored procedure. Formerly there was a rule in embedded systems that defended real time as that process that could execute at least 7 times its code per second. Today with the iron that there is this is more than overcome.

 
I have left the example, quite simple and quite powerful in my Github. Here I leave the link

Example of timer in Pro*c

HTH – Antonio NAVARRO