How to install packages on pip without internet access?
I'm having difficulties in python.
I am providing a service for a banking company, but the network is very closed, I can not download the files via pip
. I can download the packages in another way but I can't get them to run, can anyone help me?
Detail: only works powershell
0
1 answers
To install a file .whl
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 format .tar.gz
or .zip
, unzip and search for setup.py
- if it is, rotate easy_install
:
easy_install --always-unzip --allow-hosts=None --find-links=c:\pasta
It will look for the dependencies in C:\Pasta
, put all the files it asks for there.
2
Author: nosklo, 2018-07-20 18:03:19