Python Forum

Full Version: Installing python 3.x to run from a USB
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm learning python at school but things are locked down so I cannot install extension libraries such Numpy and PyGame.

In the past I've run programs from a USB memory stick with the schools permission, is there anyway I can run Python 3 from a memory stick and install the libraries on it.

With thanks,

Meta
are you going to boot from the USB memory stick or install software from it?

are you wanting to have a "portable installation" of python to carry around?
You can install Ubuntu on a flash drive with persistent storage.
This will give you python by default, and the persistence will allow you to save your work.
see: https://www.howtogeek.com/howto/14912/cr...ash-drive/
Which OS is used on the computer in school? Do you have the permission to boot from an external HDD/USB?
You've the possibility to boot in your own environment like Larz60+ posted.

I you're not allowed to boot from USB, you can choose the portable installation. This depends on the OS. I think Python 3.6.x is able to do a local installation somewhere. But you can use a special prepared package for it: http://winpython.github.io/

I think https://www.anaconda.com/ is also able to do a portable installation for Linux and Windows.
Ubuntu 16.04 LTS comes with Python3.5.2 at the latest upgrade.  i don't remember if that package had to be installed to get Python3.  but it isn't hard to do if you have internet access.
Make a directory on your USB and just create a virtual  environment. Then activate it and install all libraries you want. How to do all of that and use it - here. An alternative is to install Anaconda on your USB and use it almost the same way as the virtual environment.  How to use it, see the documentation. It comes with a bunch of preinstalled libraries and you can add more.
Yes (related to the bootable USB stick), but we still do not know the environment and the it policies of MetaSquirrels PC.
Maybe the it department does not allow booting from external media. In this case you need a portable installation and hopefully the administrator has allowed to run executables from external media.