Python Forum
Installing python 3.x to run from a USB - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Homework (https://python-forum.io/forum-9.html)
+--- Thread: Installing python 3.x to run from a USB (/thread-5519.html)



Installing python 3.x to run from a USB - MetaSquirrel - Oct-09-2017

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


RE: Installing python 3.x to run from a USB - Skaperen - Oct-09-2017

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?


RE: Installing python 3.x to run from a USB - Larz60+ - Oct-09-2017

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/create-a-persistent-bootable-ubuntu-usb-flash-drive/


RE: Installing python 3.x to run from a USB - DeaD_EyE - Oct-09-2017

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.


RE: Installing python 3.x to run from a USB - Skaperen - Oct-10-2017

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.


RE: Installing python 3.x to run from a USB - wavic - Oct-10-2017

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.


RE: Installing python 3.x to run from a USB - DeaD_EyE - Oct-10-2017

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.