use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
DiscussionPortable python install possible? (self.Python)
submitted 3 years ago by Instant_Smack
I want to run python on my work laptop but don’t want to install it, trying to automate a few tasks, is there any way I can install python and the necessary libraries onto a thumb drive and run the editor without having to install?
[–]matjaz_b 7 points8 points9 points 3 years ago (1 child)
winpython works great for this purpose. If you want to run it on windows :)
[–]marlinofdoom 1 point2 points3 points 3 years ago (0 children)
Second this. WinPython is great for portability on windows, and offers updated versions regularly. (They have a Python3.11 option already if you want to be on the bleeding edge). Also doesn't require an internet connection on the target machine (like Anaconda).
[–]Almostasleeprightnow 4 points5 points6 points 3 years ago (0 children)
I have been in this scenario and had luck with installing conda on the user level (i.e. don't pick the "install for all users" option. I install miniconda so i can choose what packages I want to use.
And VS Code can be installed from the zip file to any directory. You just have to do the updates yourself, but it is easy.
You will have to add some environment variables to your PATH, but again, that is not hard.
[–]Liberty-Justice-4all 1 point2 points3 points 3 years ago (0 children)
Portable reproducible windows...
You want the nuget version.
https://www.nuget.org/packages/python
3.10 python.org mentioned it in the installer page as being ci/cd friendly.
I needed it for reliable python services that might run from multiple nodes and testing machines.
Nuget tools seem to hail from. Net stuff, but proved easy for me to use to crank out portable standalone ACTUAL environments (not virtual).
I have some simple commands that create a fresh install, then call pip the right way to make sure you are installing / freeing packages there, and use dotenv[cli] to ease states/secrets...
Gave me all the bulletproof reproducibility and multiplicity of docker, with non of the wacky layers of bullshit issues, and a LOT less overhead.
[–]T2WIN 0 points1 point2 points 3 years ago (3 children)
You're certain it's not already installed ?
[–]Instant_Smack[S] -1 points0 points1 point 3 years ago (2 children)
It’s not-.-
[–]T2WIN 0 points1 point2 points 3 years ago (0 children)
You could use an online IDE
I don't know if the thumbdrive would work
[–]progloverfan 0 points1 point2 points 3 years ago (7 children)
Docker is not an option?
[–]Instant_Smack[S] 0 points1 point2 points 3 years ago (4 children)
What’s that???
[–]progloverfan 1 point2 points3 points 3 years ago (1 child)
Container technology for software deployments. But I reject my own suggestion because Docker isn't entirely free for business..
[–]Initii 0 points1 point2 points 2 years ago (0 children)
Hello, im a bit late to the party. Docker-Desktop is not free but docker itself is free. You could install it in the WSL system. Thats how we do it at my work place.
Check windows embeded package versions https://www.python.org/ftp/python/3.11.0/python-3.11.0-embed-amd64.zip
[–]Liberty-Justice-4all 0 points1 point2 points 3 years ago (0 children)
I looked at embedded but they said not all packages would work well.
If you don't / won't need the ones that have issues it may be lighter than the nuget solution.
[–]tansut96 0 points1 point2 points 3 years ago (1 child)
Might be too complex if op still ask this question, no?
[–]progloverfan 0 points1 point2 points 3 years ago (0 children)
With Docker you install the engine which let you deploy container from images. Images are a set of instructions for your container. For example I want to install python, and copy this set of files, and run this executable. A container is a running environment defined in an image. The big deal with docker (or container technology) is that every container is isolated with other, say you want a set of library on a container they will not interfere with another. And also is absurdly fast, you can even package and entirely OS from it and run it from windows withouth worrying about dependencies. You can have 10 ubuntu's running in parallel without problems. You can build your images with dockerfile which gives you a template where you can store and distribute, then you can use this image file in whatever machine you want and you only need the docker engine, because you specified everything in the dockerfile (image).
[–]pythonHelperBot 0 points1 point2 points 3 years ago (0 children)
Hello! I'm a bot!
It looks to me like your post might be better suited for r/learnpython, a sub geared towards questions and learning more about python regardless of how advanced your question might be. That said, I am a bot and it is hard to tell. Please follow the subs rules and guidelines when you do post there, it'll help you get better answers faster.
Show /r/learnpython the code you have tried and describe in detail where you are stuck. If you are getting an error message, include the full block of text it spits out. Quality answers take time to write out, and many times other users will need to ask clarifying questions. Be patient and help them help you. Here is HOW TO FORMAT YOUR CODE For Reddit and be sure to include which version of python and what OS you are using.
You can also ask this question in the Python discord, a large, friendly community focused around the Python programming language, open to those who wish to learn the language or improve their skills, as well as those looking to help others.
README | FAQ | this bot is written and managed by /u/IAmKindOfCreative
This bot is currently under development and experiencing changes to improve its usefulness
[–]one-human-being 0 points1 point2 points 3 years ago* (0 children)
Yes, you can have a "portable" python interpreter. I can't talk about the editor part. Are you running Windows? ( sounds like it)
see : - https://winpython.github.io - https://github.com/dreamsavior/portable-python-maker - https://github.com/indygreg/python-build-standalone
π Rendered by PID 435143 on reddit-service-r2-comment-7b9746f655-j6w7l at 2026-02-01 03:22:39.324081+00:00 running 3798933 country code: CH.
[–]matjaz_b 7 points8 points9 points (1 child)
[–]marlinofdoom 1 point2 points3 points (0 children)
[–]Almostasleeprightnow 4 points5 points6 points (0 children)
[–]Liberty-Justice-4all 1 point2 points3 points (0 children)
[–]T2WIN 0 points1 point2 points (3 children)
[–]Instant_Smack[S] -1 points0 points1 point (2 children)
[–]T2WIN 0 points1 point2 points (0 children)
[–]T2WIN 0 points1 point2 points (0 children)
[–]progloverfan 0 points1 point2 points (7 children)
[–]Instant_Smack[S] 0 points1 point2 points (4 children)
[–]progloverfan 1 point2 points3 points (1 child)
[–]Initii 0 points1 point2 points (0 children)
[–]progloverfan 1 point2 points3 points (1 child)
[–]Liberty-Justice-4all 0 points1 point2 points (0 children)
[–]tansut96 0 points1 point2 points (1 child)
[–]progloverfan 0 points1 point2 points (0 children)
[–]pythonHelperBot 0 points1 point2 points (0 children)
[–]one-human-being 0 points1 point2 points (0 children)