Как переустановить питон на windows 10

Реклама. АО «ТаймВэб». erid: LjN8KPsn7


Python – это один из самых популярных языков программирования, который используется для создания различного программного обеспечения: от веб-приложений и искусственного интеллекта до игр и научных исследований. Он отличается универсальностью и простым синтаксисом, поэтому его можно считать оптимальным выбором как для новичков, так и для профессиональных разработчиков. 

Чтобы начать использовать язык программирования, его необходимо настроить на вашей операционной системе. В этой статье мы подробно расскажем о том, как правильно установить Python на Windows 10.

Какую версию Python выбрать

Изучение языка Python можно начать с онлайн-интерпретаторов, которые позволяют писать и запускать код прямо в браузере без необходимости установки дополнительных приложений. 

Например: 

  • Replit. 
  • Programiz. 
  • Online Python. 

Такие инструменты подходят для учебных целей или быстрой проверки кода, но они имеют ограниченный функционал. Например, нельзя полноценно работать с файлами или проводить сложное тестирование приложений. Поэтому для более глубокого освоения и использования всех возможностей Python рекомендуется установить его локально.

Выбор версии Python

Перед установкой языка Python необходимо правильно выбрать его версию. В актуальных релизах появляется множество новых функций, улучшений и исправлений. Поэтому они считаются более предпочтительным вариантом для разработки.

Например, Python 3 (особенно версии с 3.6 и выше) содержит множество полезных нововведений, таких как f-строки, улучшенные асинхронные операции и типизация. 

При установке Python в составе базового пакета вы получите следующие компоненты:

  • IDLE – простая интегрированная среда разработки, которая позволяет писать и отлаживать код.
  • Документация – подробные инструкции и справочные материалы.
  • Стандартная библиотека – набор встроенных инструментов, который упрощает работу с числами, файлами, API сторонних сервисов и другими задачами.
  • Пакетный менеджер PIP – утилита для установки сторонних библиотек и фреймворков.
  • Набор тестов – инструменты для проверки и повышения надежности программного кода.
  • Python Launcher – утилита для удобного запуска Python-скриптов на Windows.

Отдельно стоит сказать об устаревших версиях – Python 2 больше не поддерживается. Но ранее он был использован для разработки множества программ. И не все из них можно легко перенести на современные версии. Для поддержки таких программ необходимо знать Python 2.7. 

Как установить Python на Windows 10

Прежде чем начать установку, необходимо убедиться, что компьютер соответствует минимальным системным требованиям:

  • 64- или 32-разрядный процессор Intel или AMD;
  • не менее 2 ГБ оперативной памяти;
  • версия Windows 7 или выше.

Процесс установки включает в себя следующие шаги:

1. Зайти на официальный сайт python.org и скачать установочный файл, нажав кнопку «Download Python ….».

Загрузка Python с официального сайта

2. Запустить файл и выбрать папку для установки. 

3. Если Python уже был ранее установлен, то установщик предложит обновить его до новой версии. 

4. Если Python не установлен, то нужно будет поставить две галочки:

  • Install for all users – это позволит работать с Python всем пользователям данного компьютера.
  • Add Python to PATH – это позволит запускать Python через командную строку без указания полного пути к программе.

Также здесь можно выбрать один из двух вариантов установки. 

Вариант 1: Install Now

Это быстрый вариант установки без особых требований:

  • не нужны права администратора;
  • Python не будет добавлен в список программ в «Панели управления» Windows;
  • устанавливается стандартный функционал, включая интерпретатор, базовые библиотеки и инструменты.

Вариант 2: Customize Installation

Этот вариант дает возможность более гибкой настройки установки:

  • требуются права администратора на устройстве;
  • Python устанавливается в папку Program Files, что делает его доступным для всех пользователей системы;
  • можно выбрать дополнительные компоненты, помимо стандартного набора, включая библиотеки и инструменты;
  • появляется возможность скомпилировать стандартную библиотеку в байт-код, что улучшает производительность работы программ.

Варианты установки Пайтон

По завершении установки рекомендуется убедиться, что она прошла успешно. Для этого нужно выполнить следующие действия:

  1. Нажмите комбинацию клавиш Win+R, чтобы открыть окно «Выполнить».
  2. Введите команду cmd и нажмите Enter для запуска командной строки.
  3. В командной строке введите python (или py) и нажмите Enter.

Если Python установлен правильно, на экране отобразится его версия, и вы получите доступ к интерактивной оболочке, что подтверждает успешную установку.

Установленный Python появится в меню «Пуск». Также вы сможете запускать его из командной строки или PowerShell, введя python или python3. Помимо этого, будут доступны утилиты pip и среда разработки IDLE. Для их запуска можно использовать соответствующие команды pip, idle или их варианты с указанием версии, например python3.10, pip3.10, idle3.10.

Комьюнити теперь в Телеграм

Подпишитесь и будьте в курсе последних IT-новостей

Подписаться


Управление версиями Python

Если на вашем устройстве установлено несколько версий Python, вы можете выбрать любую из них, используя меню «Управление псевдонимами выполнения приложений». Это позволит настроить, какая версия Python будет запускаться при вводе команд python или python3.x.

Виртуальные среды

Вы можете создавать виртуальные среды с помощью команды:

python -m venv

Это даст возможность работать в отдельных средах, не затрагивая другие проекты и глобальные настройки Python.

Удаление Python

Для удаления Python нужно открыть «Настройки» и перейти в раздел «Приложения и функции». Также можно найти Python в меню «Пуск», щелкнуть правой кнопкой мыши и выбрать «Удалить». Удаление языка приведет к удалению всех пакетов, которые установлены в текущую версию, однако виртуальные среды останутся на месте.

Альтернативные способы установки Python на Windows

Помимо классической установки из официального сайта Python, существуют и другие методы, которые могут оказаться предпочтительнее в зависимости от ваших задач. Рассмотрим варианты установки через Microsoft Store, NuGet и использование встраиваемого пакета.

Из Microsoft Store

Установка Python через Microsoft Store – это простой и быстрый способ получить интерпретатор языка Python для интерактивного использования. Данный метод особенно удобен для тех, кто не хочет вручную скачивать и настраивать установочные файлы.

Для установки этим способом необходимо выполнить следующие действия:

  1. Убедитесь, что на вашем устройстве установлена версия Windows 10 или выше.
  2. Откройте приложение Microsoft Store.
  3. В поиске введите «Python 3.x» и выберите нужную версию, например, Python 3.10.
  4. Нажмите кнопку «Получить» и дождитесь завершения загрузки файла и установки.

Python из Microsoft Store предоставляется бесплатно. Если система предложит перейти на платежную систему, это означает, что вы выбрали неверную версию.

Установка через NuGet.org

NuGet – это специальный менеджер пакетов для Windows. Его можно использовать для автоматизации установки Python и интеграции его в проекты, которые требуют гибкого управления версиями кода.

Процесс установки включает в себя следующие шаги:

  1. Перейти на официальный сайт nuget.org в раздел «Downloads». 
  2. Загрузить актуальную версию файла nuget.exe. на компьютер в удобное место. 
  3. Чтобы начать установку, нужно открыть командную строку PowerShell и использовать команды в зависимости от разрядности вашей системы.

Для 64-разрядной версии:

nuget.exe install python -ExcludeVersion -OutputDirectory

Для 32-разрядной версии:

nuget.exe install pythonx86 -ExcludeVersion -OutputDirectory

После выполнения команды Python будет установлен в выбранный вами каталог.

Встраиваемый пакет 

Встраиваемый пакет Python – это минимальный набор компонентов, упакованный в виде ZIP-файла, который предназначен для интеграции Python в различные приложения или проекты. Этот пакет не рассчитан на прямое использование конечными пользователями, а представляет собой автономное окружение Python, которое можно встроить в существующие системы.

Особенности встраиваемого пакета:

  • Создает полностью изолированное окружение Python, которое не взаимодействует с системными переменными окружения (PATH) или другими версиями Python.
  • Содержит стандартную библиотеку Python в скомпилированном и оптимизированном виде. Но в него не включены менеджер пакетов pip и документация.
  • Полезен для разработчиков, которым требуется интеграция Python в их приложения или системы без установки дополнительных компонентов.

Для загрузки встраиваемого пакета нужно выполнить следующие действия:

  1. Перейти на официальный сайт python.org.
  2. В меню выбрать раздел «Downloads».
  3. Для установки на Windows нажать соответствующую ссылку с названием операционной системы.
  4. На открывшейся странице выбрать актуальную версию Python, например, «Latest Python 3 Release – Python 3.12.6».
  5. Внизу страницы, в разделе «Files», выбрать ZIP-файл в зависимости от разрядности вашей системы (64-разрядная или 32-разрядная версия).

После загрузки архива необходимо будет распаковать его в нужную директорию и настроить проект для работы с этим окружением.

Другие инструменты для установки Python

В интернете доступны установочные пакеты с дополнительным функционалом, которые могут упростить работу с Python или предложить дополнительные инструменты для научных и профессиональных задач. 

Наиболее популярные из них:

  • ActivePython – это инсталлятор с мультиплатформенной совместимостью. Он включает документацию, библиотеку PyWin32 для работы с Windows API и дополнительные модули для разработчиков.

  • Anaconda – дистрибутив Python, который ориентирован на научные исследования и анализ данных. В его состав входят популярные научные библиотеки, такие как NumPy, SciPy и Pandas, а также пакетный менеджер Conda для управления зависимостями и виртуальными окружениями.

  • WinPython – это дистрибутив Python для Windows, который включает предварительно установленные научные пакеты и дополнительные инструменты для сборки и управления пакетами. Это решение удобно для тех, кто работает с Python в сфере науки и инженерии.

Эти пакеты не содержат сам инсталлятор языка Python и стандартные библиотеки – их нужно установить отдельно. Однако они предоставляют множество дополнительных инструментов и библиотек для упрощения работы с Python в специфичных областях.

Заключение

Python предлагает множество возможностей как для новичков, так и для опытных разработчиков. Благодаря различным способам установки, вы можете легко настроить среду для своих задач, будь то создание приложений, научные исследования или работа с данными. Благодаря своей гибкости и множеству вариантов установки, Python остается одним из самых популярных языков программирования.

Читайте также

Introduction

Reinstalling Python on Windows can be a crucial step for many developers and users, ensuring a clean and updated environment for their Python projects. Whether you are experiencing issues with your current Python installation or simply want to start fresh, the process of reinstalling Python on Windows is relatively straightforward. In this guide, we will walk you through the necessary steps to reinstall Python on Windows quickly and easily.

Steps to Reinstall Python on Windows

Uninstalling Python

Before reinstalling Python, it is important to uninstall any existing installations to prevent conflicts or issues with the new version. You can use the Control Panel to uninstall Python, ensuring that all components are removed from your system.

Downloading the Latest Version of Python

Visit the official Python website to download the latest version of Python. Make sure to choose the appropriate version for Windows, considering factors such as compatibility and requirements for your projects.

Installing Python

Once you have downloaded the installer, run it and proceed with the installation process. Configure the installation settings as needed, including adding Python to the system PATH to ensure easy access from the command line.

Verifying the Installation

After installation, verify that Python is properly installed by checking its availability in the command prompt. Test Python by running a simple script to confirm that everything is functioning correctly.

Tips for a Smooth Reinstallation Process

Backup any Python scripts or projects before uninstalling

Before uninstalling Python, be sure to back up any scripts or projects that you have been working on to avoid losing your work. This precaution can save you time and effort in case of unforeseen issues during the reinstallation process.

Use a reputable source like the official Python website for downloads

It is essential to download Python only from trusted and official sources like the Python website to ensure that you are getting a genuine and secure version of the software. Avoid third-party sources that may contain altered or malicious versions of Python.

Follow installation prompts carefully to avoid errors

When installing Python, pay close attention to the installation prompts and follow the instructions carefully to prevent any errors or configuration issues. Taking the time to ensure a smooth installation process can save you troubleshooting time later on.

Conclusion

In conclusion, reinstalling Python on Windows is a straightforward process that can help you maintain a clean and updated Python environment for your projects. By following the outlined steps and tips in this guide, you can ensure a successful reinstallation process and avoid potential issues that may arise from outdated or problematic Python installations. We encourage you to take the time to reinstall Python on Windows using these steps for a hassle-free experience and optimal performance in your Python development projects.

Python · October 25, 2024


Python is a versatile programming language widely used for web development, data analysis, artificial intelligence, and more. However, there may come a time when you need to reinstall Python on your system. This could be due to various reasons such as a corrupted installation, the need to upgrade to a newer version, or simply to reset your environment. In this tutorial, we will guide you through the steps to effectively reinstall Python on different operating systems.

Why Reinstall Python?

Before diving into the reinstallation process, it’s essential to understand why you might need to do this:

  • Corrupted Installation: If Python is not functioning correctly, a reinstallation can resolve issues.
  • Version Upgrade: Upgrading to a newer version may require a clean installation.
  • Environment Reset: If you want to start fresh, reinstalling can help clear out old packages and settings.

How to Reinstall Python on Windows

Step 1: Uninstall Python

To uninstall Python on Windows, follow these steps:

  1. Open the Control Panel.
  2. Navigate to Programs > Programs and Features.
  3. Find Python in the list, select it, and click on Uninstall.

Step 2: Download the Latest Version

Visit the official Python website to download the latest version of Python. Choose the installer that matches your system architecture (32-bit or 64-bit).

Step 3: Install Python

Run the downloaded installer. Make sure to check the box that says Add Python to PATH before clicking Install Now. This will make it easier to run Python from the command line.

How to Reinstall Python on macOS

Step 1: Uninstall Python

To uninstall Python on macOS, you can use the terminal:

sudo rm -rf /Library/Frameworks/Python.framework/Versions/3.x
sudo rm -rf "/Applications/Python 3.x"

Replace 3.x with the version number you wish to uninstall.

Step 2: Download the Latest Version

Similar to Windows, go to the Python website and download the latest version for macOS.

Step 3: Install Python

Open the downloaded package and follow the installation instructions. Ensure that you add Python to your PATH if prompted.

How to Reinstall Python on Linux

Step 1: Uninstall Python

On most Linux distributions, you can uninstall Python using the package manager. For example, on Ubuntu, you can use:

sudo apt-get remove python3

Step 2: Update Package List

Before reinstalling, update your package list:

sudo apt-get update

Step 3: Install Python

Now, install the latest version of Python:

sudo apt-get install python3

Verifying the Installation

After reinstalling Python, it’s crucial to verify that the installation was successful. Open your command line interface and type:

python --version

This command should return the version of Python you just installed. If it does, congratulations! You have successfully reinstalled Python.

Conclusion

Reinstalling Python can resolve various issues and ensure that you are using the latest version. Whether you are on Windows, macOS, or Linux, the steps outlined above will guide you through the process. Always remember to back up your projects and environments before proceeding with a reinstallation.

For those looking to host Python applications, consider exploring options like USA VPS Hosting for a reliable and scalable environment.

В данном разделе мы научимся устанавливать Python и менеджер пакетов pip на Windows 10 с нуля. Лучший способ установить Python на Windows — это скачать официальный установщик с сайта python.org. Чтобы сделать это, откройте браузер и перейдите по ссылке https://python.org/. После завершения загрузки установщика, откройте «Загрузки». Сайт обнаружит, что вы посетили его с Windows, и предложит скачать последнюю версию Python 3 или Python 2. Если вы не знаете, какую версию использовать, то я рекомендую Python 3. Если вам нужно работать с унаследованным кодом Python 2, тогда вам необходим Python 2. Под вкладками DownloadsDownload for Windows нажмите кнопку “Python 3.X.X” (или “Python 2.X.X”), чтобы скачать установочный файл.

Установка Python и pip на Windows

64-разрядный Python против 32-разрядного

Если вы гадаете, какую версию Python нужно использовать 64-разрядную или 32-разрядную, вам, скорее всего, понадобится 32-разрядная. Иногда достаточно тяжело найти бинарники для 64-разрядной версии, а это значит, что некоторые сторонние модули могут установиться неправильно на 64-разрядной версии Python. Мое мнение – использовать ту версию, которую конкретно рекомендуют на официальном сайте. Если вы кликните кнопку Python 3 или Python 2 под “Download for Windows”, вы получите именно ту версию, которую выбрали. Помните, Если вы в итоге сделаете неправильный выбор, и захотите перейти на другую версию Python, вы можете просто удалить существующую версию и переустановить его, скачав другой установщик с официального сайта.

По окончанию загрузки установщика, запустите его двойным щелчком мыши, чтобы начать установку Python. Обязательно установите флажок на «Add Python X.Y to PATH» в мастере настройке. Убедитесь, что флажок “Add Python X.Y to PATH” поставлен в установщике, в противном случае у вас будут проблемы с доступом инсталлятора Python к командной стоке. Нажмите «Установить» для начала установки. Установка должна пройти быстро, после чего Python будет готов к запуску на вашей системе. К следующему шагу нужно убедиться, что все было выполнено надлежащим образом.

Установка Python и pip на Windows

Подтверждаем, что Python был установлен правильно

По окончанию установки, Python должен быть установлен на вашем компьютере. Давайте убедимся в том, что все было выполнено правильно, протестировав, имеет ли Python доступ к командной строке (cmd) Windows:

Установка Python и pip на Windows

  • Откройте командную строку Windows, запустив cmd.exe
  • Введите pip и нажмите «Enter»
  • Вы увидите справочный текст менеджера пакетов Python под названием “pip”. Если вы получите уведомление об ошибке, повторите этапы установки Python, и убедитесь в том, что вы обладаете рабочей версией Python. Большая часть проблем, с которыми вы можете столкнуться, будут иметь то или иное отношение к неправильной настройке PATH. Переустановка и подтверждение того, что опция “Add Python to PATH” была активирована, должны исправить эту проблему.

Есть вопросы по Python?

На нашем форуме вы можете задать любой вопрос и получить ответ от всего нашего сообщества!

Telegram Чат & Канал

Вступите в наш дружный чат по Python и начните общение с единомышленниками! Станьте частью большого сообщества!

Паблик VK

Одно из самых больших сообществ по Python в социальной сети ВК. Видео уроки и книги для вас!

Что теперь?

Убедившись в том, что все сделано правильно, и убедившись в правильной работе Pip в вашей командной строке, вы можете смело заявить, что установили Python на вашей системе.

Являюсь администратором нескольких порталов по обучению языков программирования Python, Golang и Kotlin. В составе небольшой команды единомышленников, мы занимаемся популяризацией языков программирования на русскоязычную аудиторию. Большая часть статей была адаптирована нами на русский язык и распространяется бесплатно.

E-mail: vasile.buldumac@ati.utm.md

Образование
Universitatea Tehnică a Moldovei (utm.md)

  • 2014 — 2018 Технический Университет Молдовы, ИТ-Инженер. Тема дипломной работы «Автоматизация покупки и продажи криптовалюты используя технический анализ»
  • 2018 — 2020 Технический Университет Молдовы, Магистр, Магистерская диссертация «Идентификация человека в киберпространстве по фотографии лица»

Let’s explore Python and Pip in this post and learn “How to install python on windows 10 properly“. We will discuss the latest version available today for Python (3.9.1) and pip (20.2.3). Also, I will explain how to modify and uninstall Python software. In case either additional feature needs to add/remove or you want to get rid of the old python version.

I am confident, even if you are new to Python, you will be able to install it easily, following this post step by step. So let’s deep dive in.

What are Python and pip

Python is a simple, Object-oriented, interpreted, high-level programming language with dynamic semantics. Due to its non-complicated syntax and fast edit-test-debug cycle, the Programmer community loves it. Python also reduces the cost of software management due to its simple nature.

Pip is a package manager for python, it allows you to install and manage additional libraries and dependencies that are not distributed or part of the standard library.

Linux users can check out my post on “How to install the latest Python in Linux“.

Pre-requisite to install python on Windows 10

  • Windows 10 machine
  • Internet connection
  • Approx. 200MB of disk space (varies according to features and options selected).

Let’s find out the steps to install Latest Python and pip –

Step1- Python and pip download

You can download the latest python version 3.9.1 for windows or your respective operating system from python.org website.

Download-python-3.9

Otherwise, you can simply click on the below-mentioned button to download python for windows 10.

Click here to download an older release of Python like 3.8 or 2.7, for your project. Once you click on this link, scroll down and select your old python version as shown in the image.

Download-old-python-releases

You don’t need to download pip separately as it’s part of Python 3.9.1 software. You will know it while following this post further.

Step2- Run Python 3.9.1 (64-bit) installer

Once your download completes, visit your “download” directory. Then double click python-3.9.1-amd64 file to start the python setup wizard.

Run-python-exe

Step3- Choose “Install Now” or “Customize” installation

At this point, You will get two installation options –

  1. Install Now – This option is helpful if you are a newbie. Just select “Install now” and it will install Python 3.9 with default settings. Python default installation directory would be “C:\users\”your-username”\AppData\Programs\Python\Python39”. It will also install IDLE, pip, documentation and shortcuts.
  2. Customize installation – If you are a pro and need to know, what all features will be installed with python. Also, in case you already have python installed and want to test the latest version. Using the Customize installation option, you can choose a different installation folder and can keep both python versions.

Keep following this post, if you want to see options covered in Customize installation.

how-to-install-python-on-windows

There are two more checkboxes to look into –

  • Install launcher for all users (recommended)” – Select this check box and it will make a python launcher shortcut for all user profiles exist in your machine. Whomsoever will login to your system will be able to use python 3.9.
  • Add python 3.9 to path – Select this check box to add Python and pip “Path Variables” in the system environment automatically. If you will not select this option now, you need to add the path variable manually later after installation. My recommendation is to select it here itself.

So let’s click on “Customize installation” and check both the boxes as shown in the image.

Step4- Add or remove “Optional Features

On this window, you can add or remove optional features, available with python 3.9. Let’s see few details of each optional feature available –

  • Documentation:- Selecting this box will install all the Python documentation and manuals.
  • pip:- As I informed you in Step 1 download section. Pip is already part of python 3.9. Select this check box, If you want to install pip automatically with Python 3.9 (which I strongly recommend).
  • tcl/tk and IDLE:- Selecting this check box will install Tkinter and the IDLE development environment. You don’t need to install it separately then.
  • Python test suite:- Installs the standard library suite.
  • py launcher for all users (requires elevation):- Installs the global ‘py launcher‘ for all users. It requires admin rights (elevation) to perform it. Because it will allow all users to launch python easily from their user profiles.

Choose your required optional features and click Next. I will suggest you to keep all options checked.

select-optional-features-python

Step5- Choose “Advanced Options” of python 3.9

These are the advanced options available, which are self-explanatory.

  • Install for all users – Python 3.9 will install for all users in your machine. In my case, I am the only user. So this option really doesn’t matter much for me.
  • Associate files with Python (requires the py launcher) – Link associated files to the py launcher
  • Create shortcuts for installed applications – Create shortcuts icons for Python, pip and installed optional features.
  • Add python to environment variables – Add environment variable for python and pip
  • Precompile standard library – Adds precompiled libraries.
  • Download debugging symbols – You can download and install the debugging symbol, which attaches additional information to the symbol table.
  • Download debug binaries (requires VS 2017 or later) – To install required and dependent debugging binaries.

If you are a pro and know your required options. Select those options as per your need. In case you are a newbie, you can proceed with default selected options as shown in the image.

Click Install

select-advance-options-python

Step6 (optional)- Select custom install location folder

If you already have Python version installed and want to keep it safe. Also, you want to install a newer python version for testing. To make this happen, On Step 5, click Browse – Select your destination installation folder – click OK and click Install.

select-different-installation-location-python

Step7- Allow Python 3.9.1 to make changes

Choose “Yes” to allow Python 3.9 to make changes to your system.

allow-python

Step8- Let Python 3.9 and pip setup complete

Sit back and relax. Python and pip installation will take some time to complete.

How-to-install-python-on-windows-10

Step9- Select “Disable path length limit”

At this point, Python and pip have been installed successfully in windows 10. But you need to select “Disable path length limit” here. Because it allows python to bypass the 260 charactersMAX_PATH” limitation. Basically, it means, if the number of characters exceeds 260 in your installation directory path. Python will not be able to add it to the path variable. It’s a limitation of Windows 10.

Select “Disable path length limit” – then Allow Python 3.9 in user access control and Select Close.

disable-path-limit-python

How to Check Python and Pip version on Windows 10

Follow below mentioned steps to check python and pip version. Additionally, it will also validate path variable is added properly in system environment.

Step10- Validate Python and pip versions

  • Open elevated command promptas administrator” by typing “cmd” in search bar of windows 10.
open-command-prompt-windows10

  • Run python or py (short form) command to check Python version. You can see it’s version 3.9.1 installed in my case. You will see your installed version.
C:\> py 
### OR ###
C:\> python
How-to-check-python-version

Type exit() or press “Ctrl + Z” on your keyboard to exit from python prompt.

  • To check Python-pip version, type pip –version command. it will show you the pip version. it’s pip 20.2.3 in my case.
C:\> pip --version
check-pip-version

Running pip and python version command successfully also validates, that your python and pip path variables are added successfully in Windows 10. Check out this post, if you are still getting ‘pip’ is not recognized as an internal or external command, operable program or batch file.

Step11- Launch Python alternative method

I showed you how to get python prompt and version from the command prompt. Let me show you an alternate way to launch the Python console.

  • Type “Python” in the search bar of windows 10. Click “open“.
  • (optional) If you will check bullet 3 in the image, I have shown you that if you need open or check Python manuals or documentation. You select one of them and open. Additionally, you can open IDLE from the search bar.
How-to-launch-python-3.9

  • After opening, it will take you to python 3.9 window. Enjoy and start your python projects.
python-3.9.1-console

How to install python on windows 10 (command line)

Although preferred and recommended option to install Python and pip in windows 10 is through GUI. But in case you want to learn python 3.9 version installation from the command line. Follow these simple steps –

Step1 –

  • Open elevated command prompt by typing “cmd” in search bar.
open-command-prompt

Step2 –

  • Go to your Downloads directory and Run “Python-3.x.x exe” as shown. In my case, it’s Python 3.9.1-amd64.exe. Below mentioned are the arguments and options used in the command –
    • /quiet – means no interactive wizard.
    • InstallAllUsers=1 – Install for all users
    • PrependPath=1 – Install Python variable path
    • Include_test=0 – Don’t include or install test suite

0 – means disable (don’t install)

1 – enable (install)

C:\> cd "path to your home directory"
C:\> python-3.x.xexe /quiet InstallAllUsers=1 PrependPath=1 Include_test=0

For example –

C:\> cd "users\devender\Downloads"
C:\> python-3.9.1-amd64.exe /quiet InstallAllUsers=1 PrependPath=1 Include_test=0
how-to-install-python-on-windows-10 -command line

Just wait for a couple of minutes and latest python will install. Enjoy..

How to repair or modify Python in windows 10

There are some scenarios when you are not confident about additional features and options. Later you realize that you need that feature or advance option as shown in step4 and step5 in this post during installation. Then you don’t need to worry, it’s easy to add or remove features and advance options even after installation is done.

Follow these easy steps –

  • You need to type “Control Panel” in the windows search bar. Click Open.
open-control-panel-windows10

  • Select “uninstall a program
uninstall-a-program-windows10

  • Select “Python 3.9.1” or your version and click “Change“.
How-to-uninstall-Python-windows10

  • Select “Modify” and press Next. You can also repair your installation using this wizard, in case installation issues.
Modify-python-installation

Select Features and advanced option as per your need and complete installation. Refer Step4 and Step5 for further reference as shown in “How to install Python on Windows 10 using GUI” section.

How to uninstall Python in windows 10

If you have installed the latest Python and pip version by following this post. Now you want to get rid of your old Python version. Follow these simple steps to remove or uninstall Python in Windows 10.

Step1. Open Control panel from search bar

To start the uninstallation process of older Python and pip software from your windows 10. You need to type “Control Panel” in the windows search bar. Click Open.

open-control-panel

Step2. Select “Uninstall a program

uninstall-program-windows10

Step3. Select Python and click “Uninstall or change a program”.

Step 3.1 – I have shown Python version 3.9.1, but you need to select your old Python version. Once you select, click “uninstall“.

uninstall-python

  • Wait for uninstallation progress bar to complete and click “Close“.
remove-python-windows-10

Step 3.2(optional) – Once python uninstallation completes and if you can see Python Launcher also.

  • Then, Just select “Python launcher” and click “Uninstall“.
  • Select “Yes” in “uninstall python launcher” dialogue box as shown in image.
remove-python-launcher-windows-10

  • Permit in allow “User access control” box and uninstallation of Python will be done.

Hurray, You have got rid of old version of Python.

Video tutorial

If you don’t like reading, watch this tutorial to know “How to Install Python on Windows 10“. Also “Uninstallation of Python from windows 10“.

Conclusion

Congrats!! Now you know approximately everything on how to install, modify and uninstall Python in windows 10. Also, you must have a good idea of pip installation with Python3. Nowadays, Microsoft also recommends installing development software on WSL (windows subsystem for Linux).

If you like this post, you can share it on your social media wall to help others.

Frequently Asked Questions:-

Is Python EXE safe?

Yes, Python exe is completely safe. Make sure you download it from python.org website or from legitimate source only. Then you should be good with the installation. In case you have not installed it and still, you can see in your system. Go to control panel – click on “Uninstall a program” – Then check for Python software installation. If it is visible there and you don’t want, you can uninstall it. If you don’t found it in programs, then it may be a virus or malware. Scan your system and remove it.

Is Python free to download?

Yes, Python is free opensource software. You can download and install it in your system from https://www.python.org/downloads/ website.

How do I run Python on Windows 10 from the command line?

Open elevated command prompt – type py or python and hit enter.

Can I learn Python by myself?

Yes, it’s one of the easy languages with no complex syntax. There are many websites with free tutorials. Checkout free Python tutorials.

Why Python is not working?

May be either python is not installed or you have not set up Python path variable in the system environment.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Как передать файлы с одного компьютера на другой по локальной сети windows 10
  • Чем отличается пиратка от лицензии windows
  • Windows key shift ctrl b
  • Как добавить значок батареи на панель windows 10
  • Как поменять эквалайзер на windows 10