#π Installation of Python 3.12.10?!
43 messages Β· Page 1 of 1 (latest)
@lyric meadow
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Customize Installation
Do not check "Add python.exe to PATH"
What now?
Click "Customize installation" instead of "Install Now"
During customization:
Set the install path to something unique like
C:\Python312\
This avoids overwriting anything from 3.13.4.
^ generally, though, each version of Python installs in its own directory, but the default options as shown there look fine.
You'd then use py -3.12 to invoke Python 3.12 from the command line
so to create a venv for a project, you'd use py -3.12 -m venv .venv
(don't do this on top of an existing venv directory, though!)
(you could say .venv312 to be unambiguous)
How does that look like?
that should be fine.
I shouldn't "Add Python to environment variables"
there's no need if you use the py launcher
and really, that's the recommended way to access multiple versions of Python now
Okay, I clicked on Install
There was some kind of PowerShell command that shows all installed Python versions? Do you know that?
What does that ***** stand for? Is it the main one? π€
That indicates which is the default when you run py
you can change that with an environment variable.
What is that? How to do that?
do you know how to set environment variables?
Yes, I know what you're talking about π
you'd set PY_PYTHON to the version you want to use, then restart any open shells
e.g., in PowerShell: $Env:PY_PYTHON=3.12
Is this shell scripting or something?
you'd type that command in PowerShell.
What does that $ stand for?
it indicates Env:PY_PYTHON is a variable of some kind
Is it worth it to learn shell scripting (e.g. Bash, PowerShell)?
if you end up doing a lot of stuff in the shell, sure.
It's a general skill
Is it something you learn along the way or do you have to explicitly do it by watching tutorials and stuff?
either one works.
I never formally learned it; I just picked up what bits I needed to get by along the way, because I don't really do a lot of stuff in the shell that demands full-blown scripting
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.