Reputation: 51
I am currently starting a business where I will be providing support to clients directly on their business offices. I need to be able to go to different computers and be able to run custom python scripts, my question is if there's a way to make my python environment portable?
Upvotes: 4
Views: 17446
Reputation: 639
conda-pack would be a solution - https://conda.github.io/conda-pack/.
conda-pack is a command line tool for creating archives of conda environments that can be installed on other systems and locations. This is useful for deploying code in a consistent environment—potentially where python and/or conda isn’t already installed.
It will not only package the dependencies, but also won't rely on presence of python on target machine. Conda-unpack is quite fast and you will only need to run it when your environment changes, not when your scripts do.
Upvotes: 0
Reputation: 11
I found something interesting here Portable Python. I use that method to create portable Python 3.9 and 3.10 and everything works so have a look.
Upvotes: 1
Reputation: 418
Assuming that your users are running Windows, I see two options here.
Upvotes: 4