James Kingsbery
James Kingsbery

Reputation: 7486

Sharing Virtualenv environment definitions

I have a heroku project I'm trying to share with someone else. As the instructions describe, I used virtualenv to manage the environment and dependencies. Is there a way to recreate the virtualenv configuration from the requirements.txt on a new machine?

I'm aware of this question, but that describes sharing the virtualenv between user accounts on the same machine. I'm looking for a way of sharing it across machines.

Upvotes: 3

Views: 1779

Answers (1)

CraigKerstiens
CraigKerstiens

Reputation: 5954

There isn't a way to easily fully share it across machines. The most convenient thing would be to create the virtualenv then re-install the dependencies fresh:

virtualenv --no-site-packages venv
source venv/bin/activate
pip install -r requirements.txt

Upvotes: 2

Related Questions