Ubuntu – Running python portably from usb drive

pythonusb-drive

I want to download the Python on my Ubuntu 12.04, but I run it on USB flash drive. Do I have any choice to let the Python download on my flash drive? FYI it is my first time touching Ubuntu so try to make it simple.

Best Answer

If you want to run python in Ubuntu, just open a terminal with Ctrl-Alt-T and execute this command

python

Then you will have an interactive python interpreter running in the termnal.

I am assuming you want to run python portably from the USB drive and use it anywhere with Linux system. You can achieve this by downloading portable python from this site

  1. Download it

  2. Install it to your USB drive

    I am quoting from the site

    Portable Python can be installed on any USB storage device, local hard drive or network location. It is possible to install several different distributions of Portable Python on the same USB storage device (or local hard drive) and have them running side by side. This makes Portable Python ideal environment to test your code with different Python engines.

  3. Then run from the USB directly to program python

Enjoy Portable Pythonning!!