Move a virtualenv to another PC with different python edition

Viewed 1862

I have two computers running the same OS with the same login credentials; let's call them PC1 and PC2. I have a Python project M that is currently being developed on PC1.

I want to copy M from PC1 to PC2. The issue is that PC2 has no internet connection and, as such, cannot use pip to install packages. I have already tried copying the virtualenv folder from PC1 to PC2 to no avail.

Please note that making the program executable (using a tool such as PyInstaller is not an option).

Given this information, how can I copy and run M from PC1 to PC2?

2 Answers

I have already tried copying the virtualenv folder from PC1 to PC2 to no avail.

What was the error you got? Did you activate the virtualenv on PC2? Is it on the same directory level as on PC2? For the activation, you can read up here: https://virtualenv.pypa.io/en/latest/userguide/

good idea. One problem is that pip is not installed in PC2. Is it save to copy pip?

PIP is also installed automatically in the venv, it should be located in ENV/bin/pip

Related