Answer the question
In order to leave comments, you need to log in
Transferring venv from one PC to another?
Good afternoon.
There is such a case, you need to deploy a jang application on another PC (server), the problem is that access to the network is closed there, and there is no way to install libraries from requirements, tell me how you can transfer venv with the necessary libraries to another PC. When simply copying, some libraries are not found in the process of work and fall out into errors, most likely due to the fact that the paths (absolute) are different in the file as written
Answer the question
In order to leave comments, you need to log in
collect all libs for installation (download from repositories, marketplaces, etc.) into one directory,
describe them in the usual requirements.txt file
and then use the magic
python -m pip install --no-index --find-links=/your_local_dir -r requirements.txt
details here
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question