- Run
pip freeze > requirements.txton the remote machine - Copy that
requirements.txtfile to your local machine - In your local virtual environment, run
pip install -r requirements.txt
And, so long as all of the requirements are well behaved Python packages, you should be good to go.