user7122079
user7122079

Reputation: 33

VirtualEnv in different operating systems

I'm currently working on a school project in data analytics. We use OS X, Ubuntu and Windows, so we would like to know how to use the same code in all platforms. We created an virtual environment and installed all the external libraries needed, and when we change the folder to another operating system we run:

virtualenv path/to/virtualenvFolder --alwayscopy --download

But most of the libraries do not work, or have errors like "permission denied...", even with sudo. Is there any good way of passing Python code and external libraries in a folder for several operating systems?

Upvotes: 1

Views: 1886

Answers (1)

Daniel Roseman
Daniel Roseman

Reputation: 599778

You haven't really given much information here. But it sounds like you are including your virtualenv and its installed libraries in the code you share between systems. You shouldn't do that.

Only share the project code; each user should install their own copies of the dependencies directly. You should include a requirements.txt in the project which lists all these, and each developer can run pip install -r requirements.txt inside their own virtualenv.

Upvotes: 2

Related Questions