Python Tutorial

Installing Python Package in offline System (Production System) :

Mostly we have work to work in production system , where there is no internet connectivity , so 
question is this how we are going to  install package in offline system.
so i am telling you my experience , how i have done it in steps  :

Step 1: -- 

Off course you have to download package in from a internet , so how to do it ...
    A :- Make a directory in desktop , where you want to download the package :
    B:-  pip install pysftp --download="/home/usr/sfpt"
Ex. I have downloaded  package for sftp : pysftp  , shown a  screen shot for your reference  :

           


so all dependence python will also be downloaded  .  as show in mentioned pic

:
Step 2:
So now you are having  .whl file along pysft-0.2.9.tar.gz . .whl file are python  built-package format for Python. A wheel is a ZIP-format archive with a specially formatted filename and the .whl extension. It is designed to contain all thefiles for a PEP 376 compatible install in a way that is very close to the on-disk format  .

Install one by one all .whl file by using mentioned command  :

pip install   appdirs-1.4.3-py2.py3-none-any.whl -f ./ --no-index



Step 3:
So after installing the all package , install  main package pystp-o.2.9.tar.gz ,but make sure that  you have  u have unzipped the package and use command  for installing package :
                                        python setup.py build install  






Comments

Popular posts from this blog

Install Mysql from ZIP without MySQL Installer or Exe

Logging in Python .

Dictionary in Python