Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Portable Python/IPython

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?

like image 747
Adam Chua Avatar asked Oct 17 '25 11:10

Adam Chua


2 Answers

Assuming that your users are running Windows, I see two options here.

  1. If you have already defined which scripts you will be running, compile them into exe files using py2exe, that way you can just plug a USB and run them as needed. (the caveat is that some antivirus will automatically block the unsigned executables)
  2. The other option is to use WinPython, that is a full python environment with a lot of packages already preinstalled that ives in it's own directory. In case you need to install a new package, just use the Powershell or CMD that comes with it and use the preinstalled "pip".
like image 135
Roberto Armenta Ahumada Avatar answered Oct 19 '25 00:10

Roberto Armenta Ahumada


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.

like image 21
Sebs Answers Avatar answered Oct 19 '25 01:10

Sebs Answers



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!