Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

How to install packages offline? Ask Question

1 -  pip freeze > requirements.txt
2 -  mkdir wheelhouse && pip download -r requirements.txt -d wheelhouse
3 -  Copy requirements.txt into wheelhouse directory
4 -  Archive wheelhouse into wheelhouse.tar.gz with tar -zcf wheelhouse.tar.gz wheelhouse
	 or make simply zip or rar file
5 -  Then upload wheelhouse.tar.gz or zip or rar to your target machine:
6 -  Execute 
	 tar -zxf wheelhouse.tar.gz to extract the files or unzip
7 -  Execute 
	 pip install -r wheelhouse/requirements.txt --no-index --find-links wheelhouse to install the libs and their dependencies
Comment

PREVIOUS NEXT
Code Example
Python :: form action in django 
Python :: optimizationed bubble sort optimizationed 
Python :: serialization in django 
Python :: range function 
Python :: py to exe 
Python :: how to end an infinite loop in specific time python 
Python :: tk is not defined python 3 
Python :: python ctypes maximize window 
Python :: python flask api 
Python :: django forms request 
Python :: bitwise operators python 
Python :: check status code urllib open 
Python :: python try else 
Python :: pandas dataframe display cell size 
Python :: check for string in list python 
Python :: python discord embed link 
Python :: python txt to parquet 
Python :: Python How to get the keys in a dictionary? 
Python :: how to install httplib in python 
Python :: lemmatization 
Python :: replace multiple column values pandas 
Python :: python bufferedreader 
Python :: len(sys.argv) == 2 
Python :: How do you create an matrix of random integers in Numpy? 
Python :: print example in python 
Python :: create app in a django project 
Python :: dict comprehension 
Python :: convert utc to gmt+7 pandas 
Python :: python convert strings to chunks 
Python :: indexes meta django 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =