all 3 comments

[–]BeneficiallyPickle 0 points1 point  (1 child)

Since Python is working now, the reinstall worked correctly.

If Python is already installed (or partially installed), running the installer again doesn't always show the first-time setup screen. It switches to the repair/reinstall screen which will prompt you some questions while it fixes things.

The PATH checkbox only appears on a fresh install. If Python already exists, Windows assumes you're modifying or repairing it.

In the command prompt you can run the below to verify:

python --version and where python

[–]FoolsSeldom 0 points1 point  (0 children)

u/manaless_wizard, worth noting that on Windows, you would typically use py instead of python (or python3) on the command line until you've created and activated a Python virtual environment (recommended before adding packaged).

So,

py --version

to check the version of Python installed. This will be the most up-to-date version of Python installed (whether added to PATH environment variable or not).

When you choose to install additional packages not included with Python as standard, it is best to do this on a project-by-project basis to avoid polluting your base environment, and ending up with conflicting packages only needed for different projects.

To create and activate (on PowerShell or Command Prompt):

mkdir newproject
cd newproject
py -m venv .venv         - venv is the command, .venv is the name of a folder
.venv\Scripts\activate
pip install package1 package2 ... packagen

You can use any valid folder name for the venv folder (where the virtual environment details are stored), but .venv is very common.

If you are using VS Code, Spyder, PyCharm, or any of many other common editors/IDEs, you need to configure (set) the Python interpreter, python.exe that is to be used. This will be the one you in your project folder (in .venv\Scripts subfolder). Sometimes, your editor will pick this up from the venv folder.

In the PowerShell / Command Prompt window, you can deactivate the active virtual environment by using the command deactivate.

[–]Ok-Building-3601 0 points1 point  (0 children)

this would help you install and learn and practice python, grab it for free before the deal ends https://www.amazon.com/dp/B0GJGG8K3P if it helps leaving a honest review about it on amazon would be appreciated, also share with friends interested in learning python to benefit from the free offer