How to install packages in pip without internet access?

0

I'm having trouble with python.

I'm rendering service for a bank, but the network is very closed, I can not download the files via pip . I can download the packages in a different way but I can not get them to run, can someone help me?

Detail: only works with powershell

    
asked by anonymous 20.07.2018 / 06:15

1 answer

2

To install a .whl file locally, use pip install normally:

pip install arquivo.whl
pip install C:\Pasta\arquivo.whl

If you have dependencies, you can specify a folder where to look for dependencies:

pip install --no-index --find-links c:\Pasta programa

If it is in the form .tar.gz or .zip , unzip and look for setup.py - if you have, run easy_install :

easy_install --always-unzip --allow-hosts=None --find-links=c:\pasta

It will look for dependencies in C:\Pasta , put all the files it asks for there.

    
20.07.2018 / 20:03