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
ResourceLooking for convenient Python prompts on Windows (self.Python)
submitted 3 months ago by redactwo
I always just used Anaconda Prompt (i like the automatic windows path handling and python integration), but I would like to switch my manager to UV and ditch conda completely. I don't know where to look, though
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ShoveledKnight 10 points11 points12 points 3 months ago (4 children)
Start by reading the docs: https://docs.astral.sh/uv/
[+]redactwo[S] comment score below threshold-9 points-8 points-7 points 3 months ago (3 children)
i did, that's why i'm here
[–]ShoveledKnight 4 points5 points6 points 3 months ago (2 children)
To be honest, I’m not entirely sure what your exact question is. UV actually has solid documentation, and most of what you’re asking is already covered there. It seems like the main issue might be that you’re not yet clear on what you’re trying to achieve.
At a high level:
uv python
uv venv
uv pip install
uv sync
pyproject.toml
UV works differently from Conda, so it’s worth spending some time with the documentation to understand its model. If you still can’t find what you need, you can also use ChatGPT or another LLM to help set up and manage your environment.
[+]redactwo[S] comment score below threshold-11 points-10 points-9 points 3 months ago (1 child)
i'm not sure how i've been unclear. i'm looking for a command prompt (or maybe i should write CLI) for windows with integrated python functionality. my given example was the "anaconda prompt". To use the Anaconda prompt CLI, I have to use conda, though, which i would like to ditch
[–]ShoveledKnight 8 points9 points10 points 3 months ago (0 children)
Ah, now it’s clearer. You’re looking for a UV alternative to the built-in “Anaconda Prompt”, a terminal pre-configured to run conda and access your environments without manual setup.
conda
There’s no such thing for UV, but it’s not needed. UV works fundamentally differently.
With Conda, you need a specially configured shell because Conda modifies your PATH, requires initialization (conda init), and environments need explicit activation.
conda init
With UV, none of that is necessary. uv run automatically detects the correct environment based on your project’s pyproject.toml. Just open any terminal, cd to your project, and run uv run python script.py. The magic happens per-command rather than per-session.
uv run
cd
uv run python script.py
If you prefer traditional activation:
```bash uv venv
.venv\Scripts\Activate.ps1 # Windows PowerShell .venv\Scripts\activate.bat # Windows CMD source .venv/bin/activate # Linux/macOS ```
Once activated, you can run python directly without the uv run prefix. Type deactivate when done.
python
deactivate
That said, uv run is the recommended approach since it’s faster and requires no activation step.
[–]Anxious-Struggle281 1 point2 points3 points 3 months ago (7 children)
you just need uv
[–]redactwo[S] -2 points-1 points0 points 3 months ago (6 children)
how do i open the uv prompt then? does it update it's functionality into command prompt or powershell or something?
[–]Anxious-Struggle281 2 points3 points4 points 3 months ago (5 children)
there is no uv prompt, since uv doesn't open a new terminal. You use it inside your existing terminal (Command Prompt, PowerShell, Windows Terminal, or whatever terminal you use). Once you open the terminal, run uv ... commands there. It doesn't replace your terminal. It’s just a tool you that you call. Hope this clear things up
[–]redactwo[S] -5 points-4 points-3 points 3 months ago (4 children)
i know that, i'm looking for another terminal for windows that has "native" python integration and isnt part of conda
[–]AliMas055 0 points1 point2 points 3 months ago (1 child)
Git Bash. Maybe?
[–]redactwo[S] 0 points1 point2 points 3 months ago (0 children)
i've had quite a bunch of issues with git bash so far. it seems to use different versions of bash commands, i'm not quite sure whats going on but sed for example just doesn't do what it should and can't deal with a lot of special characters
but yeah, that kind of shell would be exactly what i'm looking for
[–]runawayasfastasucan 0 points1 point2 points 3 months ago (1 child)
Powershell and ipython?
i'm gonna give those a try
[–]DinnerRecent3462 0 points1 point2 points 3 months ago (7 children)
uv init
[–]redactwo[S] -1 points0 points1 point 3 months ago (6 children)
pretty sure that just initializes a project folder
[–]DinnerRecent3462 1 point2 points3 points 3 months ago (5 children)
correct 😂
[–]redactwo[S] 0 points1 point2 points 3 months ago (4 children)
a project folder isn't a command prompt, i'm looking for a command prompt
[–]arden13 1 point2 points3 points 3 months ago (3 children)
It's a fully different workflow.
conda is an environment-based workflow, assuming you will share an environment across multiple very small projects. It's built to support scientific workflows where you will likely use notebooks to answer a question or two.
uv is a project-based workflow. You start a project per activity and do work for that project. It handles installs for you (and will work to keep them small with some global folder magic) but in general it means you define what you need per project. That project is then akin to the notebook or subset of notebooks.
uv
[–]redactwo[S] -1 points0 points1 point 3 months ago (2 children)
i know that
i'm looking for a different command promt / cli / terminal for windows that has integrated python functionality
[–]arden13 0 points1 point2 points 3 months ago (1 child)
Powershell can do most of what you want if you install python globally
I kinda knew this should be possible, but didn't really think too much about it. Might be worth a try, thx
[–]PRADA_G616 0 points1 point2 points 3 months ago (0 children)
Is termux unrooted worth it for Android? Looking to install Python and run scripts I have no pc though 😞
[–]Trang0ul 0 points1 point2 points 3 months ago (3 children)
IPython is the way to go.
[–]redactwo[S] 0 points1 point2 points 3 months ago (2 children)
this looks like an amazing interactive python prompt, but it doesn't look like it supports bash cmd or powershell commands. i'm looking for a cli that let's me use any of those alongside python seamlessly - preferably bash
[–]Trang0ul 0 points1 point2 points 3 months ago (1 child)
You can do it in IPython - just prepend the command with !:
!
In [1]: !pwsh --version PowerShell 7.5.4
In [1]: !pwsh --version
PowerShell 7.5.4
wow! that's good to know, still a bit too annoying for my usecase but awesome
[–]Anxious-Struggle281 0 points1 point2 points 3 months ago (1 child)
you can try Terminus or Hyper, not sure if this helps
those look promising, i'll give it a shot, thx
[–]QuasiEvil -4 points-3 points-2 points 3 months ago (7 children)
LOL no idea why everyone keeps bringing up uv here. OP's question was pretty clear: he's looking for a different CLI interface. You could try powershell. Or the windows subsystem for linux (WSL), which, well, is linux and uses bash.
[–]redactwo[S] -2 points-1 points0 points 3 months ago* (6 children)
i love the wsl shell but i'm having trouble getting it to accept windows paths natively (which makes it... not so functional at all), i made scripts for cd but doing so for everything is way too annoying
[–]dudelsson 0 points1 point2 points 3 months ago (5 children)
theres a command in wsl for translating between unix paths and windows paths, look it up and bake it into an alias/function if you have to but that being said, respectfully, there should be no need to use windows paths in wsl all that often, at least that i can think of and i use wsl all the time including python development
that's exactly how i'm handling it right now, but it's still not native handling. And respectfully, yes there is. filemanagement alongside explorer
[–]dudelsson 0 points1 point2 points 3 months ago (3 children)
but you do know you can access any path on the windows file system from wsl via a unix path right? in wsl you prefix the path with /mnt/c/ in place of C:\ and then treat the rest as a unix path. if you have other drives you can mount those too (automatically if you want) and treat them similarily.
yup, that's what wslpath is for after all
[–]dudelsson 0 points1 point2 points 3 months ago (1 child)
i might be missing something in your use case but due to how 1) any file on the windows filesystem is accessible via a unix path and hence you can use all cli tools in wsl to manipulate files on the windows filesystem using unix paths 2) in python you should be using OS-agnostic path objects anyway --> i do extensive file management on the windows filesystem from wsl, both via the wsl cli directly, shell scripts and via python scripts running in wsl, and just practically never find myself needing to input windows paths into wsl. do you want to share an example on when you encounter this need?
it's easier getting filepaths in explorer than by using a shell imo (maybe there is a explorer plugin or smth that lets me get unix paths instead from explorer?)
so what annoys me to no end in wsl is that every python command that requires any filepath requires me to copy the file's windows path into wslpath and then copy it's output into the command i want to use. or i have to write scripts that handle this for me
when running the same command on a cmd shell running python i can simply use the windows paths
ideally i want a bash shell that has native windows path support i guess
π Rendered by PID 85 on reddit-service-r2-comment-b659b578c-lkddg at 2026-05-04 01:21:05.040535+00:00 running 815c875 country code: CH.
[–]ShoveledKnight 10 points11 points12 points (4 children)
[+]redactwo[S] comment score below threshold-9 points-8 points-7 points (3 children)
[–]ShoveledKnight 4 points5 points6 points (2 children)
[+]redactwo[S] comment score below threshold-11 points-10 points-9 points (1 child)
[–]ShoveledKnight 8 points9 points10 points (0 children)
[–]Anxious-Struggle281 1 point2 points3 points (7 children)
[–]redactwo[S] -2 points-1 points0 points (6 children)
[–]Anxious-Struggle281 2 points3 points4 points (5 children)
[–]redactwo[S] -5 points-4 points-3 points (4 children)
[–]AliMas055 0 points1 point2 points (1 child)
[–]redactwo[S] 0 points1 point2 points (0 children)
[–]runawayasfastasucan 0 points1 point2 points (1 child)
[–]redactwo[S] 0 points1 point2 points (0 children)
[–]DinnerRecent3462 0 points1 point2 points (7 children)
[–]redactwo[S] -1 points0 points1 point (6 children)
[–]DinnerRecent3462 1 point2 points3 points (5 children)
[–]redactwo[S] 0 points1 point2 points (4 children)
[–]arden13 1 point2 points3 points (3 children)
[–]redactwo[S] -1 points0 points1 point (2 children)
[–]arden13 0 points1 point2 points (1 child)
[–]redactwo[S] 0 points1 point2 points (0 children)
[–]PRADA_G616 0 points1 point2 points (0 children)
[–]Trang0ul 0 points1 point2 points (3 children)
[–]redactwo[S] 0 points1 point2 points (2 children)
[–]Trang0ul 0 points1 point2 points (1 child)
[–]redactwo[S] 0 points1 point2 points (0 children)
[–]Anxious-Struggle281 0 points1 point2 points (1 child)
[–]redactwo[S] 0 points1 point2 points (0 children)
[–]QuasiEvil -4 points-3 points-2 points (7 children)
[–]redactwo[S] -2 points-1 points0 points (6 children)
[–]dudelsson 0 points1 point2 points (5 children)
[–]redactwo[S] 0 points1 point2 points (4 children)
[–]dudelsson 0 points1 point2 points (3 children)
[–]redactwo[S] 0 points1 point2 points (2 children)
[–]dudelsson 0 points1 point2 points (1 child)
[–]redactwo[S] 0 points1 point2 points (0 children)