Python Forum
Installing python 3.x to run from a USB
Thread Rating:
  • 2 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installing python 3.x to run from a USB
#1
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
Reply
#2
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?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#3
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/
Reply
#4
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.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply
#5
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.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#6
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.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#7
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.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020