Neat takeaways
- Find out which Python, Go or PHP your shell runs right now, because PATH sends each command to the first copy it finds.
- Remove or demote an older install before you judge a new one, since a second copy causes most confusing results.
- Pick a release branch whose support dates cover your project, because a branch past its end of support gets no more fixes.
- Read the rules for your exact release, since Go's build bootstrap and PHP's connection behavior depend on the version and the server setup.
- Install packages into a virtual environment on Linux and with a brew-managed Python, not into the system interpreter.
- On Windows, check the installer's signature, the runtime PHP needs, and the php.ini file the runtime actually loads.
TL;DR: The costliest install mistakes are an old copy still answering on PATH, a branch near or past its end of support, and a setup step that the official docs spell out and people skip. Fix PATH first, pick a branch whose dates cover your project, then run the setup step for your platform.
What a language install sets up
A language version install is the interpreter or toolchain, the command your shell finds through PATH, and the configuration the runtime reads when it starts. Python, Go and PHP each put these parts in different places, so the same mistake looks different in each one, and each language's own pages set its rules.
The decision in front of you has three parts: which source to install from, which release branch to commit to, and how to confirm that the copy your shell runs is the copy you installed. Each mistake below breaks one of those parts.
This is who this post is for
Developers and learners who are close to choosing a Python, Go or PHP version, and who want to avoid setup mistakes, will get the most from this. It fits a personal laptop, a shared Windows machine, or a Linux or macOS workstation where you install the runtime yourself.
Red flags: you must run the new version on a production server you cannot restart, or your project depends on a branch whose support has already ended. Also, you cannot tell which python command your shell runs.
Pick the install source before the version
Each source sets PATH and its runtime files in its own way, and the Windows routes differ in whether they add Python to PATH for you. The Windows beginner guide says the Store build configures PATH automatically, according to learn.microsoft.com .
The route table sets out who each source fits and the check that matters most for it.
| Route | Who it fits | The check that matters most |
|---|---|---|
| python.org installer | Windows users who install Python from the official downloads | Whether Add to PATH is ticked, and the installer signature |
| Python Install Manager | Windows users who want several Python runtimes side by side | Managed installs are chosen ahead of unmanaged ones, so set a default |
| Microsoft Store Python | Windows users who want PATH and updates handled for them | The py command is not included |
| brew python3 | macOS users who already run brew | Packages go in a virtual environment, not the system pip |
| Official Go archive or MSI | Anyone who needs the official Go toolchain | Remove any old Go tree first, then set PATH |
| PHP Windows build | Windows users who need the PHP runtime | The Visual C runtime and the build you pick |
The last column is the check that prevents the most common error for each route. The sections that follow cover those checks one at a time.
Mistake one: an older copy answers first on PATH
Your shell runs the first match it finds on PATH, so a new install can look broken while an older one keeps answering. The Python docs for Windows say that if you have existing installations of Python, or you have modified your PATH variable, you may need to remove them or undo the modifications ( Python.org ). The same page says the py launcher has been superseded by the Python Install Manager, so new Windows setups should start there.
The beginner guide's FAQ describes the same clash: a python.org installer with the add-to-PATH option makes the new python command take priority over the Microsoft Store shortcut, while other installers can sit below that shortcut ( learn.microsoft.com ).
Go has the same trap on Linux. The Go install guide says to remove any previous installation by deleting the /usr/local/go folder, and it warns that extracting the archive into an existing tree is known to produce broken installations ( Go ).
The fix is to remove or demote the old copy, open a new terminal, and confirm the version the shell now reports. The same guide notes that changes made to a profile file may not apply until you log in again, so open a fresh session before you test ( Go ).
Mistake two: a branch near or past its end of support
A version number tells you less than its support dates do.
The support table draws its dates from the Python developer guide , endoflife.date , endoflife.date and the PHP supported-versions page ( PHP Group ).
| Language and branch | Latest release | End of support date |
|---|---|---|
| Python 3.10 | 3.10.22 | 2026-10-01, end of life |
| Python 3.15 | 3.15.2 | 2031-10, end of life |
Python 3.10 end of life: 2026-10-01 according to Python.org . The latest Python 3.10 release shown is 3.10.22, according to endoflife.date , so a project pinned to that branch already gets no new releases.
PHP handles its timeline differently. The PHP support page says each branch is fully supported for two years from its first stable release, then gets security fixes only for two more years, and reaches end of life after four years ( PHP Group ). Read the dates against your project's expected life, not against the version number you see first.
Mistake three: following an old release's rules
Tutorials and forum answers are written for one release, and rules move between releases. Check which release a tutorial targets before you copy a step, and see the Go bootstrap section below for one rule that changes from release to release.
Build Go from source with a bootstrap that is new enough
Building Go from source needs a working Go compiler already on the machine. The source page says the initial build scripts look for a go command in PATH, and that you can set GOROOT_BOOTSTRAP to the root of a Go installation to use ( Go ).
The bootstrap table sets out the minimum compiler for each target range, from the same source page.
| Target Go release | Compiler the build needs |
|---|---|
| Go 1.4 or earlier | A C toolchain |
The source page also says a C toolchain is needed for cgo support, and that setting CGO_ENABLED=0 builds without it, so a C compiler is not a blanket requirement for current releases ( Go ). The stated rule going forward is that Go 1.N will require a Go 1.M compiler, where M is N-2 rounded down to an even number. So check the rule for each release you target.
Mistake four: installing packages into a system or brew-managed Python
On Linux and macOS, the first install mistake is building Python in a way that overwrites the python3 command. The Python Unix guide warns that make install can overwrite or masquerade the python3 binary, and it recommends make altinstall because that installs only the versioned binary ( Python.org ).
A brew-managed Python sets a different trap. It provides supported Python 3 releases and does not provide Python 2, according to docs.brew.sh , and it marks its current Python as externally managed. Its guide tells you to use python3 -m pip instead of a bare pip command when you need the same interpreter and installer, and not to run pip install --upgrade pip against that externally managed base environment ( docs.brew.sh ).
The specification describes the marker file that tells pip an interpreter is managed elsewhere, and pip exits with an error outside a virtual environment when that marker is present, according to packaging.python.org . The fix is a virtual environment. The override flag exists, but the specification expects it to be off by default, so treat it as a last resort ( packaging.python.org ).
Mistake five: trusting a Windows installer you have not checked
The Python downloads page offers Python 3.15.2 at the top, and according to Python.org , the Windows installers and all binaries produced for each release are signed with an Authenticode certificate issued to the Python Software Foundation.
The same page explains how to check. Open the properties of an executable, look at the Digital Signatures tab, and confirm the name of the signer ( Python.org ). It also warns that some executables may not be signed, notably the default pip command, so a valid signature on python.exe does not vouch for every tool you run ( Python.org ).
Mistake six: a PHP Windows build without its runtime
PHP needs a runtime on Windows, and missing it is a common cause of a PHP install that will not start. The Windows install page says PHP requires the Visual C runtime, that official builds need a compatible Microsoft Visual C++ Redistributable, and that PHP is only available for x86 or x64 systems ( PHP ).
The same Windows page lists thread-safe (TS) and non-thread-safe (NTS) builds for x86 and x64, so pick the build that matches the server or tool you run, and install the runtime before you test it ( PHP ).
Mistake seven: editing php.ini and expecting an instant change
PHP reads php.ini when it starts up, and the lookup order decides which file wins. For the server module versions of PHP, the file is read only once, when the web server starts, so an edit needs a server restart. For the CGI and CLI versions, it is read on every invocation ( PHP ).
The lookup includes the current working directory, except for SAPIs that disable it, such as CLI. A php.ini in your project folder is therefore not searched by a command-line run, and the -c option names an explicit file for CGI and CLI ( PHP ). Find the file the runtime actually loads, edit that one, and restart the web server after any change to a module build.
Mistake eight: expecting PHP persistent connections to persist under CGI
A persistent connection is a link that does not close when the script ends, and the PHP manual says persistent connections do not provide any functionality that was not possible with non-persistent connections ( PHP ).
Under CGI, the manual says an instance of the PHP interpreter is created and destroyed for every page request. So there is nothing to be gained from persistent connections and they simply do not persist. The same page says persistent connections are reused across requests when the Server API is "Apache 2 Handler" or "FPM/FastCGI," and for any other value they do not persist after each request ( PHP ). Confirm your Server API before you design around connection reuse.
Worked example
A worked example (not a real case): 8 workers each set up PHP on a Windows laptop in early December 2026. Their project still runs on an older PHP branch in 2026. According to endoflife.date , the latest release shown for that branch is the one the team installs, rather than an older download. The PHP supported-versions page gives the end of 2026 as the date security support ends for that branch ( PHP Group ), so the team books its move to a newer branch before that date. Each worker also needs the Visual C++ Redistributable, which the PHP Windows install page names as a requirement ( PHP ).
A checklist to run before the install
-
See what runs now: use
where pythonon Windows, orwhich -a python3on macOS or Linux. - Choose the release branch and check its end-of-support date in the support table.
- Remove or demote the older copy you no longer need, then open a new terminal.
- Install from the official source for your platform, and check the Windows signature before you run the installer.
- For Python packages on Linux or brew, create a virtual environment and install there.
-
Confirm each runtime with
go version,python3 --versionandphp -v, and runphp --inito see which php.ini file loads. - On Windows, install the Visual C runtime before you test PHP.
Which install route should you pick?
- If you want Windows to handle PATH and updates for you, pick the Microsoft Store Python build because it configures PATH automatically, but plan without the py command because the Store build does not include it.
- If you need several Python runtimes on Windows, pick the Python Install Manager because managed installs are chosen ahead of unmanaged ones, so you can set a default.
- If you work on a Mac with brew, pick the brew python3 formula because it provides supported Python 3 releases, and put your packages in a virtual environment because its Python is externally managed.
- If your project must stay on one branch, pick the branch whose support dates reach past your project's end date because a branch past end of support gets no more fixes.
- If you run PHP on Windows, pick the Windows build only after the Visual C++ Redistributable is in place because PHP requires that runtime.
More guides
FAQs
Should I remove an old Python before installing a new one?
Remove or demote it when it is first on your PATH and you no longer need it, because the first match is the copy your shell runs. The Python docs for Windows say you may need to remove existing installations or undo PATH changes ( Python.org ).
Which Python branch should I install in December 2026?
Choose the branch your libraries support and whose end-of-life date falls after your project's expected life, and the support table shows Python 3.15 running until 2031-10 ( Python.org ).
Does the Microsoft Store Python give me the py command?
No, the Windows beginner guide says that when you install Python from the Microsoft Store, the py command is not included ( learn.microsoft.com ).
Why does pip refuse to install into my Linux or Homebrew Python?
pip refuses because the interpreter is marked externally managed, and the fix is a virtual environment rather than a forced override.
Do I need the Visual C runtime to run PHP on Windows?
Yes, the PHP Windows install page says PHP requires the Visual C runtime, and official builds need a compatible Microsoft Visual C++ Redistributable ( PHP ).
Why do my php.ini edits not take effect?
Module builds read php.ini only when the web server starts, so restart the server after each edit and check which file the runtime loads first ( PHP ).
Can I build a current Go release with a Go 1.4 compiler?
No, the source page says newer Go releases need a newer bootstrap compiler, so build with the compiler version the page lists for your target release ( Go ).